getVehicleNumberPlateTextIndex
GET_VEHICLE_NUMBER_PLATE_TEXT_INDEX0xF11BC2DD9A3E7195The 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.
getVehicleNumberPlateTextIndex(vehicle: Vehicle): numbergetVehicleNumberPlateTextIndex(vehicle: Vehicle): integerUsage
JavaScript
const result = getVehicleNumberPlateTextIndex(vehicle);Lua
local result = getVehicleNumberPlateTextIndex(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
int JavaScript number, Lua integerNotes
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