SA-MP Forums Archive
Fastest way to create / add a vehicle? - 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)
+--- Thread: Fastest way to create / add a vehicle? (/showthread.php?tid=603679)



Fastest way to create / add a vehicle? - eikzdej - 26.03.2016

Hi,

I tried the method /save but i don't think i can't make it perfect, like the positioning of the car. Is there any method on this matter? Thanks!


Re: Fastest way to create / add a vehicle? - X337 - 26.03.2016

You can use y_ini to save vehicles coordinate, model, etc into file; and load it while gamemode init.

Btw, there's coordinate for vehicles already inside scriptfiles/vehicles in SA-MP server packages.
If you want to load coordinates from those files, you can use LoadStaticVehiclesFromFile from gl_common include inside include/ directory.


Re: Fastest way to create / add a vehicle? - RedRex - 26.03.2016

First Go SAMP_Debug and Join
1) /v or /car number of car When Done
2) Go To place you wanna park this car or bike or something and type /save
3) Then When Done Go Documents > Gta San andreas User File > SAMP > and you saw savedpositions Right?
4) Go Pawno and OnGameModeInit > Copy The addres from savedpositions and Put it in OnGameModeInit Down it
5) And Save it and you see a car or something have been spawned
6) Plesae Rep me


Re: Fastest way to create / add a vehicle? - Joron - 26.03.2016

Quote:
Originally Posted by eikzdej
Посмотреть сообщение
Hi,

I tried the method /save but i don't think i can't make it perfect, like the positioning of the car. Is there any method on this matter? Thanks!
Ah. when u join the samp debug or anyserver /save works but when u join the debug type /vsel and choose the vehicle u want to save,then /save the place then go in your samp file and open savedpostitions and u will see all the stuff u saved.


Re: Fastest way to create / add a vehicle? - eikzdej - 26.03.2016

Thank you all!