Skip to content

onPlayerTeleport false positive with default resources #3993

@ghost

Description

Describe the bug

Hello!

We've tested this new event and it gives false positives with interiors and freeroam (F2 menu) resources. Didn't test other resources.
Another thing:

it would be cool when the event triggers, to get the position, interior, dimension from & to where the player teleports as params.

Steps to reproduce

  1. start interiors or freeroam
  2. copy & paste these lines into a script file, then start it
addEventHandler("onPlayerTeleport", root, function() 
    outputServerLog(getPlayerName(source) .. " teleporting.")
end)
  1. enter into an interior anywhere on the map. Or press F2 and teleport anywhere on the map.

Version

Client & Server: 22934

Additional context

No response

Relevant log output

Security Policy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions