24.01.2019, 08:30
If TruckTrailer has size of 50 and there are 100 vehicles, half of them will be ignored.
https://sampwiki.blast.hk/wiki/OnTrailerUpdate
You can track when a trailer is attached/detached in this callback and store in in an array of MAX_VEHICLES. When you want to respawn trailers, you loop from 0 to sizeof(TruckTrailer)-1 and you check if the value of the array for the vehicleid is not attached and you respawn it.
https://sampwiki.blast.hk/wiki/OnTrailerUpdate
You can track when a trailer is attached/detached in this callback and store in in an array of MAX_VEHICLES. When you want to respawn trailers, you loop from 0 to sizeof(TruckTrailer)-1 and you check if the value of the array for the vehicleid is not attached and you respawn it.


