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

…ObjPlayer

Co-Authored-By: Ethan <106408826+Ehbw@users.noreply.github.com>
Co-Authored-By: Gogsi <1671056+Gogsi@users.noreply.github.com>
@github-actions github-actions bot added the invalid Requires changes before it's considered valid and can be (re)triaged label Dec 26, 2025
@prikolium-cfx prikolium-cfx added ready-to-merge This PR is enqueued for merging and removed invalid Requires changes before it's considered valid and can be (re)triaged labels Jan 5, 2026
@prikolium-cfx prikolium-cfx merged commit def21e1 into citizenfx:master Jan 5, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR is enqueued for merging

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)

2 participants