How to destroy a vehicle permanently? -
Juvanii - 18.07.2014
My server's vehicles positions are based on
grandlarc vehicles so i'm using
LoadStaticVehiclesFromFile to load the vehicles from the scriptfiles folder. How to
Permanently Destroy a vehicle from the server and delete the vehicle id from the vehicle's file?
Re: How to destroy a vehicle permanently? -
BornHuman - 18.07.2014
Please, correct me if I'm wrong, but can't you just right click on the file and click 'delete'?
Re: How to destroy a vehicle permanently? -
Juvanii - 18.07.2014
No cuz there is a huge amount of vehicles in the .txt file, so you can't detect which one from the lines is the vehicle that you want to destroy it. look at this sample:
Re: How to destroy a vehicle permanently? -
Stanford - 18.07.2014
Go near the vehicle that you want to delete and type /dl and get x coordinates and then CTRL F in that file and find that coordinate.
I hope I helped any feedback would be appreciated.
Re: How to destroy a vehicle permanently? -
BornHuman - 18.07.2014
/save the vehicle at its original spawn location (/dl to make sure the two coords match up)
GTA SA User Files -> SAMP -> savedpositions.txt
Copy the coords
Go into the file
CTRL F
Paste the coords
Find it.
If it doesn't show up, then try to look for the X coord by altering a few numbers and narrowing your options down.
Re: How to destroy a vehicle permanently? -
Juvanii - 18.07.2014
Thank you for this information! But how is the current pos is different than spawn pos?
Quote:
Originally Posted by BornHuman
/save the vehicle at its original spawn location (/dl to make sure the two coords match up)
GTA SA User Files -> SAMP -> savedpositions.txt
Copy the coords
Go into the file
CTRL F
Paste the coords
Find it.
If it doesn't show up, then try to look for the X coord by altering a few numbers and narrowing your options down.
|
I already tried this but didn't work.
Re: How to destroy a vehicle permanently? -
BornHuman - 18.07.2014
Quote:
Originally Posted by Juvanii
Thank you for this information! But how is the current pos is different than spawn pos?
I already tried this but didn't work.
|
Write down the sPos, sometimes the vehicle moves a bit when it spawns, it's inevitable.
When you /save, it saves the cPos, and the sPos is where it originally spawns, so write down the sPos and try to CTRL F and paste again. If you remove the coords from the file, and the car still shows up in game after restarting the server, then there is a different way of creating the vehicles in that script, and you should look through it again.
Re: How to destroy a vehicle permanently? -
Juvanii - 18.07.2014
Thanks everything is working fine!