multitheftauto/mtasa-blue

onPlayerTeleport incorrectly triggers on spawnPlayer

Closed this issue · 2 comments

Describe the bug

The newly introduced onPlayerTeleport event is currently not working as intended. It also triggers when a player spawns using the spawnPlayer function, even though this should not be considered a teleportation.
This makes the event unreliable, since it cannot currently distinguish between a teleport and a spawn.

Steps to reproduce

https://wiki.multitheftauto.com/wiki/SpawnPlayer

Version

MTA:SA Server v1.6-release-23368

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

Misunderstanding, I think I got it wrong.

no, you didn't misunderstood it. It really shouldn't trigger for it.

It was fixed in #3990 but it's broken again. It doesn't always trigger for it, as I checked the first spawning after connection triggers it because of the 0 0 0 coordinates I think