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

Fix onPlayerTeleport #4007

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix onPlayerTeleport #4007

wants to merge 1 commit into from

Conversation

nweb
Copy link
Contributor

@nweb nweb commented Feb 7, 2025

The event did not fire if one of the coordinates was zero, regardless of the distance.

setElementFrozen(localPlayer, true)
setElementPosition(localPlayer, 9999, 9999, 0)

@tederis tederis added the bugfix Solution to a bug of any kind label Feb 7, 2025
@derxgbb
Copy link

derxgbb commented Feb 7, 2025

I'd like to note it here as well that if the player gets a vehicle and teleports with that, the event won't get triggered.

@nweb
Copy link
Contributor Author

nweb commented Feb 7, 2025

I'd like to note it here as well that if the player gets a vehicle and teleports with that, the event won't get triggered.

You can also stand on the surface of an object created on the server and move it from the client side and the event will not trigger. Useless event that clutters up the code, just like Textdisplay objects.

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants