SetVehicleExtra

From RAGE Multiplayer Wiki
Revision as of 21:32, 27 November 2019 by Avoid (talk | contribs) (Created page with "This function toggles vehicle extras. Things like the Infernus/Elegy2 spoiler, coffee cup holders inside vehicles, or hard top convertibles such as the Coquette. {{CSharpCont...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function toggles vehicle extras. Things like the Infernus/Elegy2 spoiler, coffee cup holders inside vehicles, or hard top convertibles such as the Coquette.


C# Syntax

void NAPI.Vehicle.SetVehicleExtra(Vehicle vehicle, int slot, bool enabled);

Parameters

  • vehicle: parameter input should be in Vehicle type
  • slot: parameter input should be in int type
  • enabled: parameter input should be in bool type

Example

NAPI.Vehicle.SetVehicleExtra(vehicle, 0, true);