SA-MP Forums Archive
[REQUEST] Force Numberplate Update - 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: [REQUEST] Force Numberplate Update (/showthread.php?tid=194161)



[REQUEST] Force Numberplate Update - Kyle - 28.11.2010

Its basicaly in the title.


Re: [REQUEST] Force Numberplate Update - super-sergio16 - 28.11.2010

Use SetVehicleToRespawn(carid)


Re: [REQUEST] Force Numberplate Update - SAMPGammer - 28.11.2010

You need to go out an return to update the plte.


Re: [REQUEST] Force Numberplate Update - Kyle - 28.11.2010

Yes then you have to where the car spawns which may be ages away.


Re: [REQUEST] Force Numberplate Update - [03]Garsino - 28.11.2010

GetVehiclePos + ZAngle -> Respawn -> SetVehiclePos + ZAngle

?


Re: [REQUEST] Force Numberplate Update - Kyle - 28.11.2010

Yes but using making a force saves people doing that.


Re: [REQUEST] Force Numberplate Update - Grim_ - 28.11.2010

I don't think there would be a way of doing it, or else Kye would've already implemented the feature. Just do what Garsino suggested.


Re: [REQUEST] Force Numberplate Update - Kyle - 28.11.2010

Yes, Thats why I wanted Kye to implent the feature. But Dugi said its not possible.


Re: [REQUEST] Force Numberplate Update - [MWR]Blood - 28.11.2010

Thanks Garsino! I was wondering how to do that too...


Re: [REQUEST] Force Numberplate Update - Cristi0117 - 28.11.2010

Код:
new Float:x,Float:y,Float:z,Float:ang,Float:vx,Float:vy,Float:vz;
SetVehicleNumberPlate(GetPlayerVehicleID(playerid),str);
GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
GetVehicleVelocity(GetPlayerVehicleID(playerid),vx,vy,vz);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
PutPlayerInVehicle(playerid,GetPlayerVehicleID(playerid),0);
SetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
SetVehicleVelocity(GetPlayerVehicleID(playerid),vx,vy,vz);
Works well for me.