A GTA Online styled scoreboard/playerlist for FiveM.
I was bored, so I made this. Hate it, love it. I don’t care.
License
No official license, HOWEVER, please only (re-)release actually modified versions of this, not just 1 variable name change and release it. Other than that, feel free to do whatever you want, as long as:
You credit me.
You link this github page when you share (a modified version) of this, might as well just fork it and PR it instead if you have some cool ideas.
You DON’T claim it to be yours.
Enjoy.
Features
Lists all players + their server ID’s.
You can set it to appear either on the left side, center, or right side of your screen. (Go to the __resource.lua file and change displayType 'left' to either 'left', 'center' or 'right'.)
The list is responsive, meaning it will scale with the player’s safezone scale settings & resolution.
Your own name will be highlighted in blue.
Installation
Go to releases, download the latest version. Extract the files and put them into your resources folder.
Add start gtaoscoreboard to your server.cfg file.
(Optionally) go to /releases/gtaoscoreboard/__resource.lua and edit the displayType: (instructions are in there).
(re)Start your server.
Press Z or DPAD_DOWN in-game to load the first page. If there’s more than 16 players online, pressing the same button again will show the second page.
Pressing it again will hide the scoreboard. If you don’t hide it yourself, then the scoreboard will automatically hide after a couple of seconds.
Preview
Of course the Players Online (1) will show the accurate online player count, and the players won’t all be called Player #, that’s just for this demo.
Every time you rejoin the server it should increment, unless of course the server has been restarted.
So it’s normal to have a new ID every time. If you’re online, type status in the console. It should show your server ID just before your name (I believe, not 100% sure though). Check to see if that number is the same as the one displayed in the list.
@Vespura how i display on center of the screen, not top center, center center, or bottom center, because i have a small logo and a display time on center top and i want to change, can u do that please, ty
Is there a way to change background box area to extend to suit the “Players Online” font size increase. Rather than me going through it all taking a long time to find it.
You’ll have to edit the code for that as there’s no option to easily configure that.
Same story, you’ll have to edit the code. I’ve commented on all the code, so you’ll have to look through it yourself. I did my job, now you can do yours if you want to change specific things