setVehiclePlateText | Multi Theft Auto: Wiki Skip to content

setVehiclePlateText

Client-side
Server-side
Shared

Pair: getVehiclePlateText

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function can be used to set the numberplate text of a vehicle. All non ascii characters will be replaced by spaces.

Syntax

setVehiclePlateText ( )

Code Examples

server
function PlateText(thePlayer,commandName,text)
local Vehicle = getPedOccupiedVehicle(thePlayer)
if Vehicle then
if text then
setVehiclePlateText( Vehicle, text )
else
outputChatBox("You must enter a message or the plate is incorrect.",thePlayer)
end
else
outputChatBox("You must be in a Vehicle.",thePlayer)
end
end
addCommandHandler("setplate",PlateText)

See Also

Vehicle Functions