fivem icon indicating copy to clipboard operation
fivem copied to clipboard

feat(net/rdr3): physical player extension

Open Ehbw opened this issue 1 year ago • 20 comments

Goal of this PR

Introduce support for RedM to support up 128 physical players inside a players scope. From the RAGE limit of 32, this PR is still very experimental and still needs extra work done, but is in a state where it can be tested on a feature branch with 32+ clients.

How is this PR achieving the goal

(still work in progress, will provide detailed explanation when finished)

This PR applies to the following area(s)

RedM

Successfully tested on

Game builds: 1491.50

Platforms: Windows, Linux

Checklist

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

Fixes issues

closes #2932

Ehbw avatar Jun 24 '25 22:06 Ehbw

requesting a feature branch to the team when possible please.

outsider31000 avatar Jun 24 '25 22:06 outsider31000

N1

Z-eus avatar Jun 24 '25 23:06 Z-eus

do we have any news about fixing the problem ??/

rsrspokerakisrsrs-ux avatar Sep 23 '25 13:09 rsrspokerakisrsrs-ux

do we have any news about fixing the problem ??/

The memory corruption issue (The one I'm assuming you're referring to) is still being worked on and should have a fix for that soon.

Ehbw avatar Sep 30 '25 14:09 Ehbw

Just adding my comment as support, to say how HUGE this feature would be for RedM. Please the gods that be, make this happen.

Gregorsaur avatar Oct 19 '25 00:10 Gregorsaur

Adding my comment of support. God bless you guys #RedM for life

ExerGGs avatar Oct 23 '25 03:10 ExerGGs

Progress seems to be going well

Gregorsaur avatar Nov 02 '25 22:11 Gregorsaur

Hello, and thanks again for the work on this PR.

After reading through the discussion, I understand that the extended player support breaks assumptions in the current voice subsystem (32-sized arrays, stack usage, migration behavior), which is why voice had to be disabled.

For RedM communities that run text-roleplay or already rely on external voice, this isn’t really an issue. The benefits of stable replication with more than 32 players (fewer ghost entities, no mid-session index reuse, improved scalability) would be substantial.

If this can be tested on real servers, even behind a feature flag, in a state where it can be tested, that might help gather data faster than waiting for a full review cycle.

Something like:

sv_rdr3ExtendedPlayers 1

I’m mainly asking because I’d genuinely like to help test or contribute where possible. Understanding the current stance and any specific blockers would be helpful.

Thanks again for pushing this forward.

@Ehbw

gurkansahinn avatar Nov 30 '25 22:11 gurkansahinn

Hello, and thanks again for the work on this PR.

After reading through the discussion, I understand that the extended player support breaks assumptions in the current voice subsystem (32-sized arrays, stack usage, migration behavior), which is why voice had to be disabled.

For RedM communities that run text-roleplay or already rely on external voice, this isn’t really an issue. The benefits of stable replication with more than 32 players (fewer ghost entities, no mid-session index reuse, improved scalability) would be substantial.

If this can be tested on real servers, even behind a feature flag, in a state where it can be tested, that might help gather data faster than waiting for a full review cycle.

Something like:

sv_rdr3ExtendedPlayers 1

I’m mainly asking because I’d genuinely like to help test or contribute where possible. Understanding the current stance and any specific blockers would be helpful.

Thanks again for pushing this forward.

@Ehbw

Disabling voice was an experimental change and will be re-enabled soon. As for testing there is a decent size testing group organised for testing new changes when I make them (although due to time constraints + not having any new changes pushed to be tested there hasn't been a test in a few weeks).

Ehbw avatar Nov 30 '25 23:11 Ehbw

Just leaving my comment in support, this feature would be absolutely massive for RedM. Thanks to @Ehbw , your work is amazing!

dop42 avatar Feb 17 '26 17:02 dop42

Hey @Ehbw, nice work on this.

I run LG Western (RedM RP server), we hit the 32 player scope limit constantly during events and when people group up in towns. We're on external voice already so the voice disable is fine for us.

I've got a staging env with separate artifacts I can use for testing, and enough players willing to hop on for a stress test (40+ easily). I'm used to digging through crash logs and dealing with network issues so I can give you proper reports if needed.

Happy to join your testing group or set something up on our end, just let me know.

Twinded avatar Mar 14 '26 21:03 Twinded

How is this request progressing?

OverlokoG avatar Mar 20 '26 16:03 OverlokoG

+1 - Huge support for this incredible work by @Ehbw. The 32-player scope limit is the single biggest bottleneck for serious RedM roleplay, and this PR is the most promising path forward the community has seen.

create-lucky avatar Apr 09 '26 00:04 create-lucky

HUGE BUMP This is the single biggest issue server owners face for RedM RP

WhiskeyMate avatar Jun 05 '26 02:06 WhiskeyMate

@Ehbw u got this! If you need financial support just tell us. :)

EGOistentum avatar Jun 15 '26 16:06 EGOistentum

@Ehbw u got this! If you need financial support just tell us. :)

Not how that works lol

ook3D avatar Jun 15 '26 16:06 ook3D

Please, CFX! Help us with this pull request.

Knife105 avatar Jun 15 '26 18:06 Knife105

@Ehbw u got this! If you need financial support just tell us. :)

Not how that works lol

He would be able to afford his Claude subscription again because it clearly ran out given the progress

yorick2002 avatar Jun 15 '26 18:06 yorick2002

@Ehbw u got this! If you need financial support just tell us. :)

Not how that works lol

What i meant by that is, there are people like me who would pay a fulltime salary to someone who takes his time to work on stuff like that because we love the game. Maybe it doest work out but atleast we tried. I dont have the connections to bring 33 people in one snap to the table just to test something. Otherwise i would try it on my own like many others. So keep it up. Pls....

EGOistentum avatar Jun 15 '26 19:06 EGOistentum

We are already paying, i think we all have element club subscription since lot of times. How many RedM owners have Platinum subscription ? more than 500 !? So 500 x $50 = $25 000 each month 🙃

Identity-labs avatar Jun 16 '26 08:06 Identity-labs