RedM Natives

START_VEHICLE_HORN

Sounds the horn for the specified vehicle.

Hash0xB4E3BFC39CA16057
Runtime nameStartVehicleHorn
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9C8C6504B5B63D2C

Signature

void START_VEHICLE_HORN(Vehicle vehicle, int duration, Hash mode, BOOL forever);

Parameters

NameTypeDescription
vehicleVehicle—
durationint—
modeHash—
foreverBOOL—

Returns void

Description

Sounds the horn for the specified vehicle.

vehicle: The vehicle to activate the horn for.
mode: The hash of "NORMAL" or "HELDDOWN". Can be 0.
duration: The duration to sound the horn, in milliseconds.

Note: If a player is in the vehicle, it will only sound briefly.

Usage

Lua
StartVehicleHorn(vehicle, duration, mode, forever)

-- always works, by hash
Citizen.InvokeNative(0xB4E3BFC39CA16057, vehicle, duration, mode, forever)
JavaScript and C#
JavaScript
StartVehicleHorn(vehicle, duration, mode, forever);

// by hash
Citizen.invokeNative('0xB4E3BFC39CA16057', vehicle, duration, mode, forever);
C#
Function.Call((Hash)0xB4E3BFC39CA16057, vehicle, duration, mode, forever);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

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