SetVehicleNumberPlate, Help! - 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)
+--- Thread: SetVehicleNumberPlate, Help! (
/showthread.php?tid=488327)
SetVehicleNumberPlate, Help! -
gtascripterultimate - 17.01.2014
Hello, I want to add number plate on the car (ID:516), but it's not working. So, can you help me, please?

CAR creating:
CreateVehicle(516, -614.7174, 483.8892, 2.0671, 102.0000, 0, 0, 300);
Re: SetVehicleNumberPlate, Help! -
Ace155 - 17.01.2014
Here you go:
PHP код:
new vehicleid = CreateVehicle(516, -614.7174, 483.8892, 2.0671, 102.0000, 0, 0, 300);
SetVehicleNumberPlate(vehicleid, "ABCD 123"); //change the ABCD 123 to whatver license you want.
Re: SetVehicleNumberPlate, Help! -
StreetGT - 17.01.2014
thats not ID, thats the model id.
@Ace155 correct
Re: SetVehicleNumberPlate, Help! -
ProjectMan - 17.01.2014
You can put this in OnGameModeInit:
Код:
new MySpeciaCar;
MySpecialCar = CreateVehicle(516, -614.7174, 483.8892, 2.0671, 102.0000, 0, 0, 300);
SetVehicleNumberPlate(MySpecialCar, "LOLOLOL");
Re: SetVehicleNumberPlate, Help! -
gtascripterultimate - 17.01.2014
Quote:
Originally Posted by Ace155
Here you go:
PHP код:
new vehicleid = CreateVehicle(516, -614.7174, 483.8892, 2.0671, 102.0000, 0, 0, 300);
SetVehicleNumberPlate(vehicleid, "ABCD 123"); //change the ABCD 123 to whatver license you want.
|
Now this work. Maybe, before I write too long number

Btw, thanks! :P