Skip to content

Conversation

@DaniGP17
Copy link
Contributor

Goal of this PR

It fixes an exploit: malicious clients created multiple CNetObjPlayer instances, and when teleporting away, the reference to the player's PlayerInfo was lost because they left their CNetObjPlayer clones in the same place, causing nearby players to crash because they didn't have a valid pointer to the PlayerInfo from those "clones".

How is this PR achieving the goal

Not allowing clients to create more than one CNetObjPlayer.

This PR applies to the following area(s)

FiveM

Successfully tested on

Game builds: 3570
Platforms: Windows

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

fixes #3751, fixes #3754

@github-actions github-actions bot added the invalid Requires changes before it's considered valid and can be (re)triaged label Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid Requires changes before it's considered valid and can be (re)triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash NEW Method [Crash/Exploit] Mass Client Crash - island-texas-floor (GTA5_b3258.exe!sub_1411D3FA8)

1 participant