- Documentation
- Shared functions
- setVehiclePlateText
Function
setVehiclePlateText
Changes the vehicle's licence plate text, visible to every player. A plate holds at most 8 characters; longer text is cut. Use letters, digits and spaces, as the game's plate font has only those.
Syntax
bool setVehiclePlateText(vehicle vehicle, string text)Arguments
vehiclevehicle- The vehicle.
textstring- The new text, up to 8 characters.
Returns
true on success.
Example
local vehicle = createVehicle(596, 1535, -1670, 13.4)
setVehiclePlateText(vehicle, "LSPD 01")