SetVehicleExtra

From GTA Network Wiki
Jump to: navigation, search

SetVehicleExtra
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

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

Syntax

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

Required Arguments

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

Usage example(s)

Example Description

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

Changelog

Version Description
1.0 Release.

References