Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnTrailerAttachedToVehicle #1004

Open
i-Saibot opened this issue Oct 15, 2024 · 2 comments
Open

OnTrailerAttachedToVehicle #1004

i-Saibot opened this issue Oct 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@i-Saibot
Copy link

i-Saibot commented Oct 15, 2024

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

@i-Saibot i-Saibot added the enhancement New feature or request label Oct 15, 2024
@itsneufox
Copy link

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

@NoPressF
Copy link

NoPressF commented Oct 18, 2024

In this PR I added this callbacks
#1014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants