[REQUEST] Force Numberplate Update
#1

Its basicaly in the title.
Reply
#2

Use SetVehicleToRespawn(carid)
Reply
#3

You need to go out an return to update the plte.
Reply
#4

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

GetVehiclePos + ZAngle -> Respawn -> SetVehiclePos + ZAngle

?
Reply
#6

Yes but using making a force saves people doing that.
Reply
#7

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.
Reply
#8

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

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

Код:
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)