Skip to content

Conversation

@DaniGP17
Copy link
Contributor

Goal of this PR

Prevent a crash occurring when the audio EnvironmentGroup pool becomes exhausted due to excessive scenario-related allocations (often triggered maliciously).

How is this PR achieving the goal

Adds a null-check after attempting to create an EnvironmentGroup like the game code does.

This PR applies to the following area(s)

FiveM

Successfully tested on

Game builds: None
Platforms: Windows, Linux

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 #3710

@github-actions github-actions bot added the invalid Requires changes before it's considered valid and can be (re)triaged label Nov 11, 2025
@prikolium-cfx prikolium-cfx added the ready-to-merge This PR is enqueued for merging label Nov 12, 2025
@prikolium-cfx prikolium-cfx merged commit aa01d2b into citizenfx:master Nov 12, 2025
2 of 6 checks passed
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 ready-to-merge This PR is enqueued for merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cheaters spamming scenarios to crash nearby players

2 participants