Vehicle::getNumberPlateText: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
Line 7: Line 7:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
let vehicle = mp.players.local.vehicle;
mp.gui.chat.push("NumberPlate: " + vehicle.getNumberPlateText());
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 06:15, 6 June 2020

Returns the license plate text from a vehicle. 8 chars maximum.

Syntax

vehicle.getNumberPlateText();

Required Arguments

Return value

  • String

Example

let vehicle = mp.players.local.vehicle;
mp.gui.chat.push("NumberPlate: " + vehicle.getNumberPlateText());

See also