ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. setVehiclePlateText

Function

setVehiclePlateText

Server and clientVehiclesIdentical to MTA:SA

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")

See also