HUD
Functions

Vehicle: get ELS Lights On

Check if any ELS related lights are on or not.

Used in: VCMod ELS addon.

Shared Entity Vehicle:VC_getELSLightsOn()

Returns

1. Boolean Emergency lights are on.

Example

concommand.Add("vehicle_getissirenon", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		if ent:VC_getELSLightsOn() then
			print("Vehicles lights are on.")
		else
			print("Vehicles lights are off.")
		end
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:38