Stats!
Pleased to announce a very basic but powerful script simply called Stats. What this does is every 5-5.5 minutes it will run some client-side code to poll data on each one of your citizens. On our server, we have it collecting things like:
- Economy
- On duty times
You can swap out all of the stuff for your own framework. It would be very easy to convert this to ESX or vRP.
After collected this gets sent to MySQL where you can then query it. I dump it out to Splunk! and use it to build very useful dashboards.
I have used this data to do the following things:
- Give bonuses out to active PD/EMS member.
- Find modders and people exploiting bugs.
- Find the top users of the server.
- Trend server population over time.
- Track economy over time.
Many FiveM Communities fail because economies get too bloated which makes players feel bored. We strive at PassionRP to make sure our economy never gets stale by closely monitoring the macro economy.
Here are some screenshots of the dashboards we’ve created. This intended to provide you with some creative juices to do your own.
Screenshots
Police Activity
As you can see here you can track your PD’s activity as a whole on your server. This helps you manage PD on your server and ensure you have a thriving PD. The PD is likely the lifeblood of your server.
Economy Tracking
^ The most interesting graph here is the scatter graph. This compares a players PLAY TIME with the players MONEY AMOUNT. It plots two numeric values (Hours vs Money) on a scatter graph. Each dot represents a player and each area in the graph represents different things.
If a player is in the bottom right hand corner of the graph it means that the player has a VERY HIGH amount of MONEY and a VERY LOW amount of play time. Definite modder/exploiter.
Bottom Right: Modder/Hacker/Exploiter
Top Right: Grinders. People who play a lot and make a lot of money.
Top Left: Have fun people. People who play a lot but don’t have a lot of money.
Bottom Left: People who don’t play a lot and don’t have a lot of money.
^ Bottom left is the busiest part of the graph.
Staff Activity
This code as based off / inspired from dfs_framemonitor which records the FPS of all clients on a regular basis.