Vehicle::setExtra

From RAGE Multiplayer Wiki
Revision as of 11:33, 19 September 2020 by JerryChen (talk | contribs)

Note: only some vehicle have extras
extra ids are from 1 - 9 depending on the vehicle

-------------------------------------------------

^ not sure if outdated or simply wrong. Max extra ID for b944 is 14

-------------------------------------------------
p2 is not a on/off toggle. mostly 0 means on and 1 means off.
not sure if it really should be a BOOL.

Syntax

vehicle.setExtra(extraId, toggle);

Required Arguments

  • extraId: int
  • toggle: boolean

Return value

  • Undefined

Example

let vehicle = player.vehicle;
if(vehicle) {
  vehicle.setExtra(1, true); // Enable extra 1
}

See also