How to destroy a vehicle permanently?
#1

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?
Reply
#2

Please, correct me if I'm wrong, but can't you just right click on the file and click 'delete'?
Reply
#3

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:
Reply
#4

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

/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.
Reply
#6

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

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

Thanks everything is working fine!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)