Skip to content

tweak(core/rdr3): patch GET_MAX_NUM_NETWORK_* natives for pool increase#3799

Open
Ehbw wants to merge 1 commit intocitizenfx:masterfrom
Ehbw:tweak/rdr3-netobj-pool-increase-natives
Open

tweak(core/rdr3): patch GET_MAX_NUM_NETWORK_* natives for pool increase#3799
Ehbw wants to merge 1 commit intocitizenfx:masterfrom
Ehbw:tweak/rdr3-netobj-pool-increase-natives

Conversation

@Ehbw
Copy link
Copy Markdown
Contributor

@Ehbw Ehbw commented Feb 1, 2026

Goal of this PR

Something that was missed in the initial commits implementing pool increases for CNetObjPedBase, CNetObjObject and CNetObjVehicle and brought up by Avarian.

Patches GET_MAX_NUM_NETWORK_PEDS, GET_MAX_NUM_NETWORK_OBJECTS and GET_MAX_NUM_NETWORK_VEHICLES in order for them to reflect any increases to their respective network pools rather then always being at the previous hardcoded limited for those pools.

How is this PR achieving the goal

Patch the underlying native function to have the increaseSize factored in.

This PR applies to the following area(s)

RedM

Successfully tested on

Game builds: 1491

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

These were forgotten about/missed during the initial support for increased network pool sizes for Peds, Objects and Vehicles.
@github-actions github-actions Bot added RedM Issues/PRs related to RedM invalid Requires changes before it's considered valid and can be (re)triaged labels Feb 1, 2026
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 RedM Issues/PRs related to RedM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant