VehicleClient

setVehicleNumberPlateTextIndex

SET_VEHICLE_NUMBER_PLATE_TEXT_INDEX0x9088EB5A43FFB0A1

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

SignatureJavaScript
setVehicleNumberPlateTextIndex(vehicle: Vehicle, plateIndex: number): void
SignatureLua
setVehicleNumberPlateTextIndex(vehicle: Vehicle, plateIndex: integer)

Usage

JavaScript
setVehicleNumberPlateTextIndex(vehicle, plateIndex);
Lua
setVehicleNumberPlateTextIndex(vehicle, plateIndex)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
plateIndexintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

Plates:
Blue/White - 0
Yellow/black - 1
Yellow/Blue - 2
Blue/White2 - 3
Blue/White3 - 4
Yankton - 5

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_NUMBER_PLATE_TEXT_INDEX(Vehicle vehicle, int plateIndex)
Hash
0x9088EB5A43FFB0A1

Open in the interactive natives reference