Attach function with trailer
#1

well, I'm creating a 'quest' , when you attach a roadtrain to the trailer i want it to create a checkpoint...
could somebody please explain to me how to do that ?

~Lorrden
Reply
#2

Well there isn't a callback for it, so you'd have to use a timer/loop combo to detect if the player had a trailer. Other than that you could just make a command, and when typed it gives them a trailer and makes a checkpoint...
Reply
#3

thanks, I thought there was no callback but I needed some idea of how to create it, I think I will go with the command...
so, when he enters a Roadtrain he can do /transport (for example) and whats the function of attaching the trailer ?
or should it just spawn behind him ?
Reply
#4

Well you could choose either of these:

https://sampwiki.blast.hk/wiki/AttachTrailerToVehicle - Attached the trailer

https://sampwiki.blast.hk/wiki/IsTrailerAttachedToVehicle - Check if the player has a trailer or not.

For example, you could have trailer/roadtrain combinations and when the player types "/transport" it checks whether they have a trailer or not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)