SA-MP Forums Archive
Doubt with vehicles loaded from files - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Doubt with vehicles loaded from files (/showthread.php?tid=167352)



Doubt with vehicles loaded from files - Hernaner28 - 12.08.2010

Hi. I've changed the GM of my server recently because I noticed that NPCs modes are made to fit with GL gamemode because it loads vehicles (including NPCs' vehicles) from files located on scriptfiles. But after I did this I noticed that vehicles doesnt respawn after a time, and stands where they are left for an unlimited time and I dont like this.
I also had a conflict with a FS with tunned cars. The problem was strange... when I went to see the train, instead of being a train it was a tunned car... or instead being the at400 it was another tunned car.

My final question is: how can I solve this? Or at least: is there any easy way to "convert" vehicles from files to simple functions (AddStaticVehicle) and load them via the GM?

Any help would be much appreciated.


Re: Doubt with vehicles loaded from files - 0ne - 12.08.2010

Happend to me alot of times, two things i tried was:

1. Loading cars from scriptfiles, .txt or .ini files

2. Used a basic streamer

Some say this happens because alot of cars are added, or too many cars were placed in one position with radius 5 to 10.

Try those 2 things see if it works.


Re: Doubt with vehicles loaded from files - Hernaner28 - 12.08.2010

Thanks for replying. But what I want to do is not to load them from scriptfiles because if I do so cars will never respawn again until they are destroyed.
PD: How can I see what is the ID of a specific vehicle from the list? They are several vehicles... :S

I NEEED YOUUUUUUUUUUUUR HELP!!!!!!!!!!!!!!!!!!!!!I NEEED YOUUUUUUUUUUUUR HELP!!!!!!!!!!!!!!!!!!!!!I NEEED YOUUUUUUUUUUUUR HELP!!!!!!!!!!!!!!!!!!!!!

EDIT 2:
Now I could edit the gl_common include and changed the respawn delay (for default it was 30 minutes!!).
All right, but now I need to add the tunned vehicles to a file and then add their components from the Filterscript but when I have to set the ID of the vehicle I will add it component, how would it be?
I've seen that the TrainSF NPC is put on the vehicle ID 5 ("PutPlayerInVehicle(playerid,5,0);") on the NPC Mode FS... but how the f*** do I know their ID from the textfiles Counting them one by one?!


Re: Doubt with vehicles loaded from files - Hernaner28 - 13.08.2010

Help! I know there are experts on this topic. Please, dont be lazy and just write a comment to help me. THANKS


Re: Doubt with vehicles loaded from files - Hernaner28 - 14.08.2010

Bring up my post...


Re: Doubt with vehicles loaded from files - Hernaner28 - 21.08.2010

Bring it up!!!


Re: Doubt with vehicles loaded from files - Hernaner28 - 22.08.2010

Come on!