HUD
Functions

Vehicle: is Locked

Locks the vehicle.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_isLocked()

Returns

1. Boolean Vehicle is locked.

Example

concommand.Add("vehicle_togglegodmode", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		if ent:VC_isLocked() then
			ent:VC_unLock()
		else
			ent:VC_lock()
		end
	else
		print("Invalid entity.")
	end

	print("Toggled vehicles locks.")
end)
Page modified:
...2018-11-02 09:24:39