fivem icon indicating copy to clipboard operation
fivem copied to clipboard

feat(citizen-server-gui): add state bags viewer gui

Open DaniGP17 opened this issue 4 months ago • 4 comments

Goal of this PR

Add a new debug menu that displays state bag statistics, rate limit data, a list of state bags, and the ability to view information about each one. I know the description is lacking right now, but I'm too tired to write a proper one at the moment :sweat_smile:.

image

How is this PR achieving the goal

Create multiple functions in StateBagComponent that return information to be able to render them in the GUI

This PR applies to the following area(s)

Server

Successfully tested on

Game builds: 3258 Platforms: Windows

Checklist

  • [x] Code compiles and has been tested successfully.
  • [ ] Code explains itself well and/or is documented.
  • [x] 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

fixes #3528

DaniGP17 avatar Aug 22 '25 23:08 DaniGP17

This is very cool, but also Client ID is not their client id its their slot id, iirc some of the other ui has something to convert from slot -> net.

AvarianKnight avatar Aug 23 '25 01:08 AvarianKnight

Really cool, wonder how'd look with 2k clients

slashkeyvalue avatar Aug 23 '25 01:08 slashkeyvalue

This is very cool, but also Client ID is not their client id its their slot id, iirc some of the other ui has something to convert from slot -> net.

Solved

Really cool, wonder how'd look with 2k clients

Yeah I'm curious too :laughing:

DaniGP17 avatar Aug 23 '25 09:08 DaniGP17

please add that. would be very helpfull to understand statebags way better

Sloosi0502 avatar Oct 14 '25 14:10 Sloosi0502