Vehicle::setExtra

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Max extra ID is 16.

Syntax

vehicle.setExtra(extraId, disabled);

Required Arguments

  • extraId: int
  • disabled: boolean

Return value

  • Undefined

Example

const vehicle = mp.players.local.vehicle;
if(vehicle) {
  vehicle.setExtra(1, false); // Enable extra 1
}

See also