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

Vehicle::getExtra

Материал из RAGE MP Wiki Archive
Версия от 11:38, 19 сентября 2020; imported>JerryChen (Created page with "Get the extra currently applied on vehicle in the target extra id. ==Syntax== <syntaxhighlight lang="javascript">vehicle.getExtra(extraId);</syntaxhighlight> === Required Argu...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Get the extra currently applied on vehicle in the target extra id.

Syntax

<syntaxhighlight lang="javascript">vehicle.getExtra(extraId);</syntaxhighlight>

Required Arguments

  • extraId: int

Return value

  • toggle: boolean

Example

<syntaxhighlight lang="javascript"> let vehicle = player.vehicle; if(vehicle) {

 vehicle.getExtra(1);

} </syntaxhighlight>

See also