Posts: 64
Threads: 6
Joined: Dec 2011
Reputation:
0
Hello, I want to save car position if the server restart.Like, if i drive one car and left it somewhere if the server restart i want to save the car in the last position.Thanks
Posts: 1,662
Threads: 199
Joined: Dec 2011
Reputation:
0
Impossible with static vehicles
Posts: 153
Threads: 17
Joined: Jan 2011
Reputation:
0
Unless you create your own function to restart the server with the proper RCON command below all the fuckload of code that is going to be necessary for saving vehicles, it won't work, AND even if you do this, it wont save if a crash occurs...
Posts: 64
Threads: 6
Joined: Dec 2011
Reputation:
0
Ok thanks for your answers.So i want this for impound cars.I want to impound cars and when do /impound (i have that command) to save the vehicle at position if the server restart.Understand? Thanks
Posts: 64
Threads: 6
Joined: Dec 2011
Reputation:
0
Can you tell me how please?If u can.
Thanks
Posts: 160
Threads: 24
Joined: Oct 2009
Reputation:
0
I tryed this, but sometimes GetVehiclePos returns spawn coordinates of the vehicle instead of current vehicle position.
Posts: 153
Threads: 17
Joined: Jan 2011
Reputation:
0
Oh wow that's lame.
in this case use GetPlayerPos instead, because the player has to be inside a vehicle to do /impound command