[release] [esx] Custom Scoreboard with jobs online

my scoreboard doesnt automatically update i have to use /screfresh

Hi. After fivem’s servers update, the scoreboard did not work.

1 Like

Can anyone say how to replace name with steam id ??
I done this if anything else need to do share steps :slight_smile:

Server Side Script 
From Line 42 
function AddPlayerToScoreboard(xPlayer, update)
	local playerId = xPlayer.source

	connectedPlayers[playerId] = {}
	connectedPlayers[playerId].ping = GetPlayerPing(playerId)
	connectedPlayers[playerId].id = playerId
--	connectedPlayers[playerId].name = xPlayer.getName()
        connectedPlayers[playerId].steam= xPlayer.getSteam()
	connectedPlayers[playerId].job = xPlayer.job.name

For some reason this is not working anymore. I haven’t changed anything in my script but when I press the hotkey, the scoreboard doesn’t come up.

IDs are not shown if they are in the user group, help please

Error running system event handling function for resource esx_scoreboard: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:43: attempt to index a nil value (local ‘xPlayer’)
stack traceback:
server/main.lua:43: in function ‘AddPlayerToScoreboard’
server/main.lua:17: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:218: in function citizen:/scripting/lua/scheduler.lua:182

how to fix this

where should I adjust this we would like to use this on our server? thank you in advance

How can I scroll down if I have more than 33 players?

Ok so i am probably doing something wrong but i have been banging my head for 3 days trying to figure what i did wrong, so i putted the files to my system folder on my server and putted on the server.cfg the start Stadus_Scoreboard and also i stopped the normal scoreboard from starting but it didn’t work. After that i renamed the folder to scoreboard and remove the old scoreboard and remove the Stadus_Scoreboard from the server.cfg and only left working the start scoreboard and still nothing. Please some help.

And, how do you fix it?

I’ve got the same.

how i can put more slots? i have 32 for some reson

how to make it show “+2” if 2 or more police officers connected?

How have you fixed that?

1 Like

I had something conflicting with the script!

i solved it

you need to framework to use this? i like the idea of the jobs to instead add to see staff

but i dont have a brain

Any clue on how to Toggle Esx_Scoreboard for Admin only or Hide Server ID from users?

wow
is crazy