HUD
Functions

Vehicle: set ELS Sound

Turns on vehicles ELS sound on (siren).

Used in: VCMod ELS addon.

Shared Entity Vehicle:VC_setELSSound(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_setelssoundson", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		ent:VC_setELSSound(true)
		print("Turning on vehicles siren.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:41