AudioClient

isHornActive

IS_HORN_ACTIVE0x9D6BFC12B05C6121

The 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.

SignatureJavaScript
isHornActive(vehicle: Vehicle): boolean
SignatureLua
isHornActive(vehicle: Vehicle): boolean

Usage

JavaScript
const result = isHornActive(vehicle);
Lua
local result = isHornActive(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Open in the interactive natives reference