VehicleClient

getModSlotName

GET_MOD_SLOT_NAME0x51F0FEB9F6AE98C0

The 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.

SignatureJavaScript
getModSlotName(vehicle: Vehicle, modType: number): string
SignatureLua
getModSlotName(vehicle: Vehicle, modType: integer): string

Usage

JavaScript
const text = getModSlotName(vehicle, modType);
Lua
local text = getModSlotName(vehicle, modType)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
modTypeintnumberinteger

Returns

string JavaScript string, Lua string

Notes

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

Open in the interactive natives reference