Skip to content

Server crashes when passing invalid playerid in some natives #1002

Closed

Description

@NexiusTailer

Describe the bug
omp server crashes when passing invalid playerid in natives AllowPlayerTeleport and IsPlayerTeleportAllowed.

To Reproduce
Steps to reproduce the behavior:

  1. Add this or similar code into your gamemode:
public OnGameModeInit()
{
	AllowPlayerTeleport(0, true);
	return 1;
}

and/or

public OnGameModeInit()
{
	IsPlayerTeleportAllowed(0);
	return 1;
}
  1. Launch omp server

Release version
Latest release version, v1.3.1.2748

Activity

  1. added
    bug
    on Oct 11, 2024
  2. NexiusTailer commented on Oct 15, 2024

    @NexiusTailer
    ContributorAuthor

    Solved in #1003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions