getVehicleModColor1Name
GET_VEHICLE_MOD_COLOR_1_NAME0xB45085B721EFD38CThe GTA V native GET_VEHICLE_MOD_COLOR_1_NAME of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleModColor1Name, in JavaScript and in Lua.
getVehicleModColor1Name(vehicle: Vehicle, p1: boolean): stringgetVehicleModColor1Name(vehicle: Vehicle, p1: boolean): stringUsage
JavaScript
const text = getVehicleModColor1Name(vehicle, p1);Lua
local text = getVehicleModColor1Name(vehicle, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
p1 | BOOL | boolean | boolean |
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 a string which is the codename of the vehicle's currently selected primary color
p1 is always 0
Reference
- Namespace
- Vehicle VEHICLE
- In the game
const char* GET_VEHICLE_MOD_COLOR_1_NAME(Vehicle vehicle, BOOL p1)- Hash
0xB45085B721EFD38C