[HELP] AddStaticVehicle Quastion...
#1

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
Reply
#2

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?

Reply
#3

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?
Reply
#4

https://sampwiki.blast.hk/wiki/AttachTrailerToVehicle
Reply
#5

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
Reply
#6

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

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

Try at OnVehicleSpawn.
Reply
#9

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

Quote:

trailerid ID of the trailer
vehicleid ID of the pulling vehicle

I guess you should create vehicle and trailer.
Reply


Forum Jump:


Users browsing this thread: