openmultiplayer / open.mp

Open Multiplayer, a multiplayer mod fully backwards compatible with SA-MP
https://open.mp
Mozilla Public License 2.0
459 stars 95 forks source link

OnTrailerAttachedToVehicle #1004

Open i-Saibot opened 2 days ago

i-Saibot commented 2 days ago

I think it wouldn't be bad to add a callback when the trailer is attached to the transport. I understand that this can be done by writing code in Pawn, but I think it wouldn't hurt for open.mp. It would also be convenient for newcomers who don’t know how to do this.

native OnTrailerAttachedToVehicle(driverid, vehicleid, trailerid, bool:isattach)

isattach = true - if the trailer is attached isattach = false - if the trailer is detached

itsneufox commented 2 days ago

Just came here to say that i support this improvement. Would help on trucking gamemodes.