Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(game/five): verify pickup weapon component is valid on creation ( again, but proper ) #2849

Conversation

slashkeyvalue
Copy link
Contributor

Goal of this PR

Prevent crash caused by invalid pickup weapon components on pickup creation.

This is an improvement on #2797 which was absolutely garbage.

How is this PR achieving the goal

Adds proper validations on pickup creation

This PR applies to the following area(s)

FiveM

Successfully tested on

Game builds: 2060, 2699, 2802, 3095, 3258

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 GTA5_b3095.exe!sub_141163854 (0x456)

@github-actions github-actions bot added the invalid Requires changes before it's considered valid and can be (re)triaged label Oct 8, 2024
@Pedro-Lucas14
Copy link

Is the cheater taking down every player that some fix date goes into production? @FabianTerhorst @iridium-cfx

Copy link
Contributor

@iridium-cfx iridium-cfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, completely missed this PR. Looks good!

@FabianTerhorst FabianTerhorst 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 Oct 28, 2024
@prikolium-cfx prikolium-cfx merged commit 2632c6d into citizenfx:master Oct 28, 2024
3 of 6 checks passed
@slashkeyvalue slashkeyvalue deleted the fix/pickup-creation-invalid-weap-comp-improved branch October 31, 2024 20:21
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.

5 participants