SA-MP Forums Archive
Freight/Streak? - 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: Freight/Streak? (/showthread.php?tid=197529)



Freight/Streak? - yelkreb - 09.12.2010

I was wondering whether you can add trains to SA on a recording purpose, especially HERE. My plan is to record it on that track (which is not long), but somehow, whenever I try to add a train in-game it doesn't spawn at all.

Any ideas?


Re: Freight/Streak? - __ - 09.12.2010

You can only create trains in OnGameModeInit (so you have to get a static position of where you want the train to be spawned, create it with a function and then go back when your gamemode has loaded) with AddStaticVehicle or AddStaticVehicleEx.


Re: Freight/Streak? - Jakku - 09.12.2010

Trains must be spawned with AddStaticVehicle

E: Sry, someone already posted it