SA-MP Forums Archive
[HELP] AddStaticVehicle Quastion... - 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: [HELP] AddStaticVehicle Quastion... (/showthread.php?tid=82369)



[HELP] AddStaticVehicle Quastion... - FreddeN - 17.06.2009

Hello everyone!
I'm tryting to make a Trucking RPG, but I got a main problem.
I'm making Random trucks/trailers at gas stations / truckstops, but... I want the trucks to have Trailers on, have spawned trailers+trucks in debug and connected them and parked them.
But How can I make the trucks to spawn with the trailers on?

If this is impossible, give me a good tips to just make them spawn right beheind the truck or something...

Thanks


Re: [HELP] AddStaticVehicle Quastion... - BMUK - 17.06.2009

Use /save for the location where you want the truck. Reverse back a small bit and /save again and use those coords for the trailer?




Re: [HELP] AddStaticVehicle Quastion... - FreddeN - 17.06.2009

Quote:
Originally Posted by BM[UK
]
Use /save for the location where you want the truck. Reverse back a small bit and /save again and use those coords for the trailer?

So there is no way to make it connected to the truck at spawn?


Re: [HELP] AddStaticVehicle Quastion... - Correlli - 17.06.2009

https://sampwiki.blast.hk/wiki/AttachTrailerToVehicle


Re: [HELP] AddStaticVehicle Quastion... - Luka P. - 17.06.2009

Quote:
Originally Posted by Don Correlli
Oh thanks from me,too
I forgot for that,I need that right now,I am making Car Ownership FS lol


Re: [HELP] AddStaticVehicle Quastion... - FreddeN - 17.06.2009

Quote:
Originally Posted by Don Correlli
Sounds good, thanks, will check it out.


Re: [HELP] AddStaticVehicle Quastion... - FreddeN - 17.06.2009

Quote:
Originally Posted by Don Correlli
They dont tell where and how to put it up... should it be at the AddStaticVehicle?


Re: [HELP] AddStaticVehicle Quastion... - Correlli - 17.06.2009

Try at OnVehicleSpawn.


Re: [HELP] AddStaticVehicle Quastion... - Luka P. - 17.06.2009

Hey,Don,I wan`t to put AttachTrailerToVehicle into my command /attachtrailer but it`s not working.
Vehicle must be a van or what?


Re: [HELP] AddStaticVehicle Quastion... - Correlli - 17.06.2009

Quote:

trailerid ID of the trailer
vehicleid ID of the pulling vehicle

I guess you should create vehicle and trailer.