VehicleClient

getNumberOfVehicleNumberPlates

GET_NUMBER_OF_VEHICLE_NUMBER_PLATES0x4C4D6B2644F458CB

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

SignatureJavaScript
getNumberOfVehicleNumberPlates(): number
SignatureLua
getNumberOfVehicleNumberPlates(): integer

Usage

JavaScript
const result = getNumberOfVehicleNumberPlates();
Lua
local result = getNumberOfVehicleNumberPlates()

Parameters

None.

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 number of *types* of licence plates, enumerated below in setVehicleNumberPlateTextIndex.

Reference

Namespace
Vehicle VEHICLE
In the game
int GET_NUMBER_OF_VEHICLE_NUMBER_PLATES()
Hash
0x4C4D6B2644F458CB

Open in the interactive natives reference