AudioClient

setHornPermanentlyOnTime

SET_HORN_PERMANENTLY_ON_TIME0x9D3AF56E94C9AE98

The GTA V native SET_HORN_PERMANENTLY_ON_TIME of the AUDIO namespace, as LS:MP client scripts call it: the global function setHornPermanentlyOnTime, in JavaScript and in Lua.

SignatureJavaScript
setHornPermanentlyOnTime(vehicle: Vehicle, time: number): void
SignatureLua
setHornPermanentlyOnTime(vehicle: Vehicle, time: number)

Usage

JavaScript
setHornPermanentlyOnTime(vehicle, time);
Lua
setHornPermanentlyOnTime(vehicle, time)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
timefloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Audio AUDIO
In the game
void SET_HORN_PERMANENTLY_ON_TIME(Vehicle vehicle, float time)
Hash
0x9D3AF56E94C9AE98

Open in the interactive natives reference