HUD
Functions

Vehicle: set Horn

Turns on vehicles horn.

Used in: VCMod Main, VCMod ELS addons.

Shared Entity Vehicle:VC_setHorn(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_hornon", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		ent:VC_setHorn(true)
		print("Turning vehicles horn on.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2019-02-10 22:16:02