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

SetVehicleExtra

Материал из RAGE MP Wiki Archive

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


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

<syntaxhighlight lang="csharp"> NAPI.Vehicle.SetVehicleExtra(vehicle, 0, true); </syntaxhighlight>