AudioClient

getVehicleDefaultHorn

GET_VEHICLE_DEFAULT_HORN0x02165D55000219AC

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

SignatureJavaScript
getVehicleDefaultHorn(vehicle: Vehicle): Hash
SignatureLua
getVehicleDefaultHorn(vehicle: Vehicle): Hash

Usage

JavaScript
const hash = getVehicleDefaultHorn(vehicle);
Lua
local hash = getVehicleDefaultHorn(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

Hash JavaScript number, Lua integer

A game hash. Natives return it unsigned (0 to 4294967295), the value lsmp.hash gives. As an argument, the signed and unsigned forms of a hash are the same value.

Notes

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

Returns hash of default vehicle horn

Reference

Namespace
Audio AUDIO
In the game
Hash GET_VEHICLE_DEFAULT_HORN(Vehicle vehicle)
Hash
0x02165D55000219AC

Open in the interactive natives reference