Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cancel data change #4503

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

Merged
Dutchman101 merged 4 commits into multitheftauto:master from ArranTuna:cancelDataChange
Oct 7, 2025
Merged

Conversation

@ArranTuna
Copy link
Collaborator

@ArranTuna ArranTuna commented Oct 1, 2025

onElementDataChange can now be cancelled when a client, setElementData, or removeElementData changes an element data. This is useful because right now you have to do setElementData to cancel a change, which broadcasts to all players and also triggers the event again. Being able to just cancel the event is the cleanest way to deal with unauthorized data changes.

I tested it as many ways as I could think of to try and break it but everything works as intended.

This is version 2 of #4477 because I had to fix some conflicts and did it wrong and ended up deleting the commits in the first PR.

omar-o22, Fernando-A-Rocha, theSarrum, salwador, Wannacry-ops, and PlatinMTA reacted with rocket emoji
onElementDataChange can now be cancelled when a client, setElementData, or removeElementData changes an element data.
This is useful because right now you have to do setElementData to cancel a change, which broadcasts to all players and also triggers the event again. Being able to just cancel the event is the cleanest way to deal with unauthorized data changes.
@tederis tederis added the enhancement New feature or request label Oct 2, 2025
@Dutchman101 Dutchman101 merged commit 3ab39b8 into multitheftauto:master Oct 7, 2025
3 of 7 checks passed
MTABot pushed a commit that referenced this pull request Oct 7, 2025
3ab39b8 Cancel data change (#4503)
20d36cd `getElementDistanceFromCentreOfMassToBaseOfModel` add 'building' (#4504)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tederis tederis tederis approved these changes

Assignees

No one assigned

Labels

enhancement New feature or request

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /