Skip to main content

Vehicle::startHorn

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.

Syntax

```js vehicle.startHorn(duration, mode, forever); ```

Required Arguments

  • duration: int
  • mode: Model hash or name
  • forever: Boolean

Return value

  • Undefined

Example

```js // todo ```

See also