Перейти к содержанию

Vehicle::startHorn

Материал из RAGE MP Wiki Archive
Версия от 23:49, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

<syntaxhighlight lang="javascript">vehicle.startHorn(duration, mode, forever);</syntaxhighlight>

Required Arguments

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

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also