SetVehicleNumberPlate
Description:
Function SetVehicleNumberPlate set a vehicle numberplate.
Function SetVehicleNumberPlate was added in 0.3c and will not work in earlier versions! |
|
You can use color embedding on the number plate text. |
Parameters:
(vehicleid, numberplate[])
int | vehicleid | The ID of the vehicle to set the number plate of. |
string | numberplate | The text that should be displayed on the number plate. |
Return Values:
- 1: The function executed successfully.
- 0: The function failed to execute. The vehicle does not exist.
Examples:
new vehicleid = CreateVehicle(542, 2074.73, 1089.89, 10.51, 0.0, -1, -1, -1); SetVehicleNumberPlate(vehicleid, "ABCD 123");
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetVehicleToRespawn: Respawn a vehicle.
- ChangeVehicleColor: Set the color of a vehicle.
- ChangeVehiclePaintjob: Change the paintjob on a vehicle.