SA-MP Forums Archive
SetVehicleNumberPlate() not work in init? - 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() not work in init? (/showthread.php?tid=197949)



SetVehicleNumberPlate() not work in init? - whitedragon - 10.12.2010

in ongamemodeinit() i use:
for(new i=0;i<=MAX_VEHICLES;i++)
{
SetVehicleNumberPlate(i, "SAMPFTW");
SetVehicleToRespawn(i);
}
but it not work... why?


AW: SetVehicleNumberPlate() not work in init? - Blokkmonsta - 10.12.2010

works fine for me


Re: SetVehicleNumberPlate() not work in init? - Jay_ - 10.12.2010

Also:

Quote:

Please use this function with care and don't go assigning custom numberplates to vehicles that don't have plates (like planes/boats etc), as this would result in unneeded processing time on the client.

8char


Re: SetVehicleNumberPlate() not work in init? - IstuntmanI - 10.12.2010

Put in OnGameModeInit after CreateVehicle,AddStaticVehicle and AddStaticVehicleEx that:
Код:
for(new i=0;i<=MAX_VEHICLES;i++) SetVehicleNumberPlate(i, "SAMPFTW");



Re: SetVehicleNumberPlate() not work in init? - Sayaron - 10.12.2010

You must also remember that the vehicles needs to be created before you can set the plates