SA-MP Forums Archive
Truck trailer - 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: Truck trailer (/showthread.php?tid=584414)



Truck trailer - sscarface - 04.08.2015

Well, I want to spawn a trailer when player get into checkpoint. I don't want create any coordinates. Can u do like this? Just spawn a trailer without coordinates?


Re: Truck trailer - dominik523 - 04.08.2015

You always have to spawn a vehicle on some position, you can't just put CreateVehicle and it will magically spawn in front of you.
This will help you:
https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/CreateVehicle


Re: Truck trailer - sscarface - 04.08.2015

well i already did. How can i random trailer spawn? like i want to add 4 types of trailers and i want it spawn random. How cani make random?