VehicleClient

getVehicleModColor1Name

GET_VEHICLE_MOD_COLOR_1_NAME0xB45085B721EFD38C

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

SignatureJavaScript
getVehicleModColor1Name(vehicle: Vehicle, p1: boolean): string
SignatureLua
getVehicleModColor1Name(vehicle: Vehicle, p1: boolean): string

Usage

JavaScript
const text = getVehicleModColor1Name(vehicle, p1);
Lua
local text = getVehicleModColor1Name(vehicle, p1)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
p1BOOLbooleanboolean

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

Open in the interactive natives reference