How to check if trailer is attached? - 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: How to check if trailer is attached? (
/showthread.php?tid=648859)
How to check if trailer is attached? -
kevann - 29.01.2018
How do i check if a trailer is attached to a truck?
Re: How to check if trailer is attached? -
Hrb - 29.01.2018
Very simple:
https://sampwiki.blast.hk/wiki/IsTrailerAttachedToVehicle
Re: How to check if trailer is attached? -
kevann - 29.01.2018
Ty, thought it was more to it
Re: How to check if trailer is attached? -
Mugala - 29.01.2018
yeah you can use many ways, if(IsTrailerAttachedToVehicle(vehicleid)) or if(GetVehicleTrailer(vehicleid) != INVALID_VEHICLE_ID)