SetVehicleMod

From GT-MP
Jump to: navigation, search
SetVehicleMod
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Sets a specific vehicle modification to a slot.


Syntax

API.setVehicleMod(NetHandle vehicle, int modType, int mod);

Required Arguments

  • vehicle: parameter input should be in NetHandle/LocalHandle type.
  • modType: the type of mod to use, see Vehicle Mods for more info.
  • mod: parameter input should be in int type.

Usage example

API.setVehicleMod(hVehicle, 3, 2);


References