VehicleClient

getVehicleNumberPlateTextIndex

GET_VEHICLE_NUMBER_PLATE_TEXT_INDEX0xF11BC2DD9A3E7195

The GTA V native GET_VEHICLE_NUMBER_PLATE_TEXT_INDEX of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleNumberPlateTextIndex, in JavaScript and in Lua.

SignatureJavaScript
getVehicleNumberPlateTextIndex(vehicle: Vehicle): number
SignatureLua
getVehicleNumberPlateTextIndex(vehicle: Vehicle): integer

Usage

JavaScript
const result = getVehicleNumberPlateTextIndex(vehicle);
Lua
local result = getVehicleNumberPlateTextIndex(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns the PlateType of a vehicle

Blue_on_White_1 = 3,
Blue_on_White_2 = 0,
Blue_on_White_3 = 4,
Yellow_on_Blue = 2,
 Yellow_on_Black = 1,
North_Yankton = 5,

Reference

Namespace
Vehicle VEHICLE
In the game
int GET_VEHICLE_NUMBER_PLATE_TEXT_INDEX(Vehicle vehicle)
Hash
0xF11BC2DD9A3E7195

Open in the interactive natives reference