GetVehicleValidMods

From GT-MP
Jump to: navigation, search
GetVehicleValidMods
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Returns a list of all valid mods for a specified vehicle model.


Syntax

API.getVehicleValidMods(VehicleHash model);

Required Arguments

  • model: parameter input should be in VehicleHash type.

NOTE: This function returns data in Dictionary<int, Dictionary<int, string>> type.

Data structure

(Key) Modtype 
(Value) 
   |-> (Key) ModID
   |-> (Value) ModName

Usage example(s)

API.getVehicleValidMods(VehicleHash model);

Changelog

Version Description
1.638.634 Release.

References