25.03.2013, 20:18
(
Last edited by SDraw; 23/07/2018 at 07:06 PM.
)
Simple include that detects attaching/deattaching of trailer to/from vehicle by player.
Called when: (title says) and player is driver of vehicle (server-side attaching/deattaching also detectable, but when there is a driver in vehicle and he doesn't pause a game).
Callbacks: OnPlayerAttachTrailer(playerid,vehicleid,trailerid ) & OnPlayerDeattachTrailer(playerid,vehicleid,trailer id).
URL: gist.github.com
Called when: (title says) and player is driver of vehicle (server-side attaching/deattaching also detectable, but when there is a driver in vehicle and he doesn't pause a game).
Callbacks: OnPlayerAttachTrailer(playerid,vehicleid,trailerid ) & OnPlayerDeattachTrailer(playerid,vehicleid,trailer id).
URL: gist.github.com