isHornActive
IS_HORN_ACTIVE0x9D6BFC12B05C6121The GTA V native IS_HORN_ACTIVE of the AUDIO namespace, as LS:MP client scripts call it: the global function isHornActive, in JavaScript and in Lua.
isHornActive(vehicle: Vehicle): booleanisHornActive(vehicle: Vehicle): booleanUsage
JavaScript
const result = isHornActive(vehicle);Lua
local result = isHornActive(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Checks whether the horn of a vehicle is currently played.
Reference
- Namespace
- Audio AUDIO
- In the game
BOOL IS_HORN_ACTIVE(Vehicle vehicle)- Hash
0x9D6BFC12B05C6121