getModSlotName
GET_MOD_SLOT_NAME0x51F0FEB9F6AE98C0The GTA V native GET_MOD_SLOT_NAME of the VEHICLE namespace, as LS:MP client scripts call it: the global function getModSlotName, in JavaScript and in Lua.
getModSlotName(vehicle: Vehicle, modType: number): stringgetModSlotName(vehicle: Vehicle, modType: integer): stringUsage
JavaScript
const text = getModSlotName(vehicle, modType);Lua
local text = getModSlotName(vehicle, modType)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
modType | int | number | integer |
Returns
string JavaScript string, Lua stringNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns the name for the type of vehicle mod(Armour, engine etc)
Reference
- Namespace
- Vehicle VEHICLE
- In the game
const char* GET_MOD_SLOT_NAME(Vehicle vehicle, int modType)- Hash
0x51F0FEB9F6AE98C0