Vehicle::getExtra

From RAGE Multiplayer Wiki
Revision as of 11:38, 19 September 2020 by JerryChen (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Syntax

vehicle.getExtra(extraId);

Required Arguments

  • extraId: int

Return value

  • toggle: boolean

Example

let vehicle = player.vehicle;
if(vehicle) {
  vehicle.getExtra(1);
}

See also