Posts: 1,110
Threads: 33
Joined: Nov 2007
Reputation:
0
Okay, i created a command which saves your vehicle number plate on the database, the thing is that i don't know how to load that numberplate when the player enters the server, yes the vehicle plate is saved on the player account, same as his vehicle. The variable i use is this one: pCarPlate, how can i load it when the vehicle saved to that player account spawns?
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
If you are using dini or some other ini system, try to find the function that loads that variable.
You'll need to add the scripts in OnPlayerStateChange.
When the player changes his state as driver,
check his vehicle's model whether it has a numberplate or not,
and save its position, components,zangle,etc..
Then change its numberplate and respawn it,
and finally restore the position,components,etc.,
and put the driver as passengers back to the vehicle.
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
There's no other way, I think.
Changing numberplate requires the vehicle to respawn to take effect.
Posts: 1,180
Threads: 55
Joined: Apr 2005
Reputation:
0
It doesn't really require a respawn. It requires the vehicle to restream (if someone already sees it). In other words, setting the numberplate after CreateVehicle() is fine.
Posts: 410
Threads: 9
Joined: Jan 2006
Reputation:
0
Is toggling virtual worlds or interiors considered as a re-stream to the server?