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

Add arguments to onPlayerTeleport and fix the false positive caused by setElementInterior using x, y, z parameters. #4001

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

imfelipedev
Copy link
Contributor

Suggested by issue

…y setElementInterior using x, y, z parameters.
@samr46
Copy link
Contributor

samr46 commented Feb 4, 2025

It would also be better to update (set) new position of a player on the server before this event is triggered. This way it will be possible to call setElementPosition inside of this event if needed.

Alternatively you could make this event cancellable (so if cancelled then position on the server shouldn't be updated and return packet should be sent to the source player with previous position).

@botder botder merged commit 13c35f8 into multitheftauto:master Feb 4, 2025
6 checks passed
@botder botder added enhancement New feature or request bugfix Solution to a bug of any kind labels Feb 4, 2025
@botder botder added this to the 1.6.1 milestone Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Solution to a bug of any kind enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants