VehicleClient

getVehicleNumberPlateText

GET_VEHICLE_NUMBER_PLATE_TEXT0x7CE1CCB9B293020E

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

SignatureJavaScript
getVehicleNumberPlateText(vehicle: Vehicle): string
SignatureLua
getVehicleNumberPlateText(vehicle: Vehicle): string

Usage

JavaScript
const text = getVehicleNumberPlateText(vehicle);
Lua
local text = getVehicleNumberPlateText(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

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 the license plate text from a vehicle. 8 chars maximum.

Reference

Namespace
Vehicle VEHICLE
In the game
const char* GET_VEHICLE_NUMBER_PLATE_TEXT(Vehicle vehicle)
Hash
0x7CE1CCB9B293020E

Open in the interactive natives reference