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

Cannot cancel natural onTrailerAttach events #449

Open
ArranTuna opened this issue Sep 11, 2018 · 0 comments
Open

Cannot cancel natural onTrailerAttach events #449

ArranTuna opened this issue Sep 11, 2018 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@ArranTuna
Copy link
Collaborator

ArranTuna commented Sep 11, 2018

Describe the bug
If you attach a trailer to a vehicle naturally (by using a towtruck), cancelEvent() does not work.

Also for attaching a trailer to a Truck.

To Reproduce

testcar = createVehicle (450, 0,0,3.5)
function detachTrailer(theTruck)
    if source == testcar then
        outputDebugString("Cancel attached testcar",3)
        cancelEvent()
    end
 end
addEventHandler("onTrailerAttach", getRootElement(), detachTrailer)

Expected behavior
cancelEvent should stop the attachment of trailer.

MTA Client: client v1.5.5-release-14007 (@patrikjuvonen verified)

MTA Server: Server v1.5.5-release-14007 (@patrikjuvonen verified)

Additional context
From https://bugs.mtasa.com/view.php?id=8008

@ArranTuna ArranTuna added the bug Something isn't working label Sep 11, 2018
@qaisjp qaisjp added this to the Backlog milestone Sep 20, 2018
@qaisjp qaisjp changed the title cancelEvent() for onTrailerAttach does not work server side, if attached while gameplay Cannot cancel natural onTrailerAttach events Sep 20, 2018
@patrikjuvonen patrikjuvonen removed their assignment Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants