01.09.2016, 21:11
Hello!
I am doing a Vehicle System using MySQL. Everything goes fine but now, I have a little problem. When I store my car I use DestroyVehicle() function. When I respawn it the ID of the car changes because I don't have only one car. Is any possibilities to keep the ID on the server? Because I have an ID of MySQL from where I select the car to spawn, and it spawns ok (model, owner, colors, etc.) but if the Id in-game changes, then another commands like /respawncar [id] will not work propertly because they are calling the new car located at this id.
Anyone knows how can I "hide" the car keeping the ID? Or a good vehicle fs script based on MySQL? I've searched but all the scripts are so buggy.
Lot of thanks!
I am doing a Vehicle System using MySQL. Everything goes fine but now, I have a little problem. When I store my car I use DestroyVehicle() function. When I respawn it the ID of the car changes because I don't have only one car. Is any possibilities to keep the ID on the server? Because I have an ID of MySQL from where I select the car to spawn, and it spawns ok (model, owner, colors, etc.) but if the Id in-game changes, then another commands like /respawncar [id] will not work propertly because they are calling the new car located at this id.
Anyone knows how can I "hide" the car keeping the ID? Or a good vehicle fs script based on MySQL? I've searched but all the scripts are so buggy.
Lot of thanks!