SA-MP Forums Archive
IsTrailerAttached - 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: IsTrailerAttached (/showthread.php?tid=588615)



IsTrailerAttached - Lunoxel - 10.09.2015

I want to check if TRAILER `x` is attached to any vehicle. How can I do this?


Re: IsTrailerAttached - Lunoxel - 10.09.2015

Solved
PHP код:
for(new 1MAX_VEHICLESV++)
        {
            if(
GetVehicleTrailer(V) == idCar)
            {
                return 
0;
            }
        }