SetVehicleNumberPlate - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetVehicleNumberPlate (
/showthread.php?tid=271709)
SetVehicleNumberPlate -
wizarddoctor - 25.07.2011
Is it possible to change the numberplates of all vehicles?
Where should that line of code?
grtz,
wiz.
Re: SetVehicleNumberPlate -
wizarddoctor - 25.07.2011
And why doesn't this work:
Quote:
public OnVehicleSpawn(vehicleid)
{
SetVehicleNumberPlate(vehicleid, "Wiz is awesome!");
return 1;
}
|
Re: SetVehicleNumberPlate -
Skylar Paul - 25.07.2011
Quote:
Originally Posted by wizarddoctor
And why doesn't this work:
|
You need to specify the vehicle ID.
Example:
pawn Код:
new myvehicle = AddStaticVehicle(....);
SetVehicleNumberPlate(myvehicle, "Wiz is awesome!");
Re: SetVehicleNumberPlate -
iPLEOMAX - 25.07.2011
Read the wiki, notes/howto etc..
SetVehicleNumberPlate
The Vehicle needs to be created with the plate number or respawned after adding the plate.