SetVehicleNumberPlate bugs? - 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 bugs? (
/showthread.php?tid=400006)
SetVehicleNumberPlate bugs? -
Azazelo - 16.12.2012
Is there a bug in SetVehicleNumberPlate when player die,
i questioning this when i Set Vehicle Number Plate and die plate change in XYZ 000?
Anybody have similar issue?
Re: SetVehicleNumberPlate bugs? -
Huxley - 16.12.2012
In OnVehicleSpawn callback, you should put the SetVehicleNumberPlate function. It's called when the specific vehicle was destroyed/blown up, after it respawns, the number plate on the specific vehicle has been set.
Re: SetVehicleNumberPlate bugs? -
Threshold - 16.12.2012
Yeah basically, but it's more whenever a vehicle is set to respawn, whether it is because of the respawn delay or because it has to reset because of it's status.
The code would look something like this:
pawn Код:
public OnVehicleSpawn(vehicleid)
{
SetVehicleNumberPlate(vehicleid, "MyNumberPlate");
return 1;
}