Trailers - 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: Discussion (
https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: Trailers (
/showthread.php?tid=593118)
Trailers -
WeirdestYeti - 01.11.2015
Is there anyway to make trailer non attachable to truck. So it wont attach automatically? I know that i can check if someone attaches trailer to truck and then detach. But is there a way to just disable it?
Re: Trailers -
zDevon - 08.11.2015
I would check if someone attempts to attach a trailer like you said and if it returns true then use
https://sampwiki.blast.hk/wiki/DetachTrailerFromVehicle right away if you dont want the functionality to be enabled yet (or at all)
Re: Trailers -
Macluawn - 10.11.2015
In Addition to detaching the trailer, return false on the callback. As a result, other players wont receive an update about it.