HUD
Functions

Vehicle: set Low Beams

Turns on vehicles high beams lights.

Used in: VCMod Main addon.

Shared Entity Vehicle:VC_setLowBeams(Boolean on)

Arguments

1. Boolean on; To turn on, default is off.
If not specified, the command will be set to 'off'.

Example

concommand.Add("vehicle_lowbeamsson", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		ent:VC_setLowBeams(true)
		print("Turning vehicles low beams on.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2019-02-10 16:22:27