Skip to content

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
MTABot pushed a commit that referenced this pull request Feb 4, 2025
13c35f8 Fix and extend new event onPlayerTeleport (PR #4001)
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