[Bugs] Plates - 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: [Bugs] Plates (
/showthread.php?tid=198902)
[Bugs] Plates -
scottyishere - 13.12.2010
If I DestroyVehicle and CreateVehicle after, the vehicle plate gets reset to the XYZR 000 shit.....
The last one should remain.... or make it so you don't need to respawn vehicle when SetVehicleNumberPlate. It sucks very much.
Thank you.
EDIT:
Quote:
Originally Posted by scottyishere
I am using but the point is, if I destroy and recreate the car then I also need to respawn it, which is sometimes lagging, just like this:
pawn Код:
DestroyVehicle(vehicleid); crap = CreateVehicle(560,....); SetVehicleNumberPlate(crap,"Ihateu"); SetVehicleToRespawn(crap);
This sux lol....
Another idea would be the ability to add SetVehicleNumberPlate in OnVehicleSpawn... so respawn won't be needed.
|
EDIT 2:
Ability to:
pawn Код:
SetVehicleNumberPlate(..);
SetVehicleParamsEx(..); //engine,lights,alarm,boot,bonnet
--- in OnVehicleSpawn without needing to respawn vehicle after
Re: [Bugs] Plates -
WillyP - 13.12.2010
Use dini or smth to save the numberplate to a specific vehicle.
Re: [Bugs] Plates -
scottyishere - 13.12.2010
I am using but the point is, if I destroy and recreate the car then I also need to respawn it, which is sometimes lagging, just like this:
pawn Код:
DestroyVehicle(vehicleid);
crap = CreateVehicle(560,....);
SetVehicleNumberPlate(crap,"Ihateu");
SetVehicleToRespawn(crap);
This sux lol....
Another idea would be the ability to add SetVehicleNumberPlate in OnVehicleSpawn... so respawn won't be needed.
Re: [Bugs] Plates -
WillyP - 13.12.2010
Quote:
Originally Posted by scottyishere
Another idea would be the ability to add SetVehicleNumberPlate in OnVehicleSpawn... so respawn won't be needed.
|
That's possible. Set a Vehicle's numberplate when it spawns.
Re: [Bugs] Plates -
scottyishere - 13.12.2010
Quote:
Originally Posted by [FU]Victious
That's possible. Set a Vehicle's numberplate when it spawns.
|
Doesn't work for me lol...
Also setting engine/lights/bonnet/boot/alarm doesn't work in OnVehicleSpawn.
Re: [Bugs] Plates -
kurta999 - 13.12.2010
OnVehicleSpawn not called fristly spawn. ( When server create vehicles )
Re: [Bugs] Plates -
FUNExtreme - 13.12.2010
You could just ask to add "Plate" parameter to CreateVehicle, AddStaticVehicle and AddStaticVehicleEx
Re: [Bugs] Plates -
scottyishere - 13.12.2010
Quote:
Originally Posted by FUNExtreme
You could just ask to add "Plate" parameter to CreateVehicle, AddStaticVehicle and AddStaticVehicleEx 
|
That's also a solution, but the ability to add SetVehicleNumberPlate in OnVehicleSpawn would be the best thing to do.
Also the ability to add vehicle params: engine, lights, alarm...
AW: [Bugs] Plates -
FufLa - 13.12.2010
Just add SetVehicleNumberPlate right after the vehicle is created...you will then see the plates you set (cause the vehicle streams in for you after like 1 second, means plates get updated).
You dont have to respawn the vehicle, you can simply enter an interior/change your virtual world or go far away from it.
Re: [Bugs] Plates -
Hal - 14.12.2010
Quote:
Originally Posted by FUNExtreme
You could just ask to add "Plate" parameter to CreateVehicle, AddStaticVehicle and AddStaticVehicleEx 
|
I'm making that into my vehicle streamer :P