START_VEHICLE_HORN
Sounds the horn for the specified vehicle.
Hash
0xB4E3BFC39CA16057Runtime name
StartVehicleHornNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x9C8C6504B5B63D2CSignature
void START_VEHICLE_HORN(Vehicle vehicle, int duration, Hash mode, BOOL forever);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
duration | int | — |
mode | Hash | — |
forever | BOOL | — |
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
StartVehicleHorn(vehicle, duration, mode, forever)
-- always works, by hash
Citizen.InvokeNative(0xB4E3BFC39CA16057, vehicle, duration, mode, forever)JavaScript and C#
StartVehicleHorn(vehicle, duration, mode, forever);
// by hash
Citizen.invokeNative('0xB4E3BFC39CA16057', vehicle, duration, mode, forever);Function.Call((Hash)0xB4E3BFC39CA16057, vehicle, duration, mode, forever);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.