AudioClient

overrideVehHorn

OVERRIDE_VEH_HORN0x3CDC1E622CCE0356

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

SignatureJavaScript
overrideVehHorn(vehicle: Vehicle, override: boolean, hornHash: number): void
SignatureLua
overrideVehHorn(vehicle: Vehicle, override: boolean, hornHash: integer)

Usage

JavaScript
overrideVehHorn(vehicle, override, hornHash);
Lua
overrideVehHorn(vehicle, override, hornHash)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
overrideBOOLbooleanboolean
hornHashintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Overrides the vehicle's horn hash.
When changing this hash on a vehicle, it will not return the 'overwritten' hash. It will still always return the default horn hash (same as getVehicleDefaultHorn)

vehicle - the vehicle whose horn should be overwritten

Reference

Namespace
Audio AUDIO
In the game
void OVERRIDE_VEH_HORN(Vehicle vehicle, BOOL override, int hornHash)
Hash
0x3CDC1E622CCE0356

Open in the interactive natives reference