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

Function

getVehiclePlateText

Server and clientVehiclesIdentical to MTA:SA

Returns the vehicle's licence plate text.

Syntax

string getVehiclePlateText(vehicle vehicle)

Arguments

vehiclevehicle
The vehicle.

Returns

The plate text (up to 8 characters).

Example

addEventHandler("onVehicleEnter", root, function(player, seat)
    if seat == 0 then
        outputChatBox("Rejestracja: " .. getVehiclePlateText(source), player)
    end
end)

See also