- Documentation
- Shared functions
- getVehiclePlateText
Function
getVehiclePlateText
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)