HUD
Functions

Vehicle: un Lock

Locks the vehicle.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_unLock()

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:43