RedM Natives

IS_HORN_ACTIVE

Checks whether the horn of a vehicle is currently played.

Hash0x9D6BFC12B05C6121
Runtime nameIsHornActive
NamespaceAUDIO
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9D6BFC12B05C6121

Signature

BOOL IS_HORN_ACTIVE(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns BOOL

Description

Checks whether the horn of a vehicle is currently played.

Usage

Lua
local retval = IsHornActive(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9D6BFC12B05C6121, vehicle, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsHornActive(vehicle);

// by hash
const retval = Citizen.invokeNative('0x9D6BFC12B05C6121', vehicle, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x9D6BFC12B05C6121, vehicle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.