19.12.2016, 20:13
Quote:
hi all. I tried many ways to respawn a detached trailer, but all my struggle was senseless.
so I decided to ask you, maybe you know how to respawn all detached trailers? ... this is my code, but this code still respawns attached trailer. |
Код HTML:
for(new trucktrailerindex = 0; trucktrailerindex < sizeof(TruckTrailer); ++trucktrailerindex) { if(!IsTrailerAttachedToVehicle(TruckTrailer[trucktrailerindex])) { SetVehicleToRespawn(TruckTrailer[trucktrailerindex]); } }
+ in that case you didnt have to make sequential IDs in TruckTrailer.