Error running system event handling function for resource esx_scoreboard: citize
n:/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:/scriptin
g/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:/scriptin
g/lua/scheduler.lua:182>
Anyone have a solution to this? Whenever I restart the resource it works, but does not work any other time
I’ve tried literally every single option i could find. I have experience in IT but it doesn’t help with anything lmao so that 's what I’m getting in console. I’ve correctly installed “uptime” and imported everything needed in my SQLDB.
SCRIPT ERROR: @esx_scoreboard/server/main.lua:43: attempt to index a nil value (local ‘xPlayer’)
I’ve Now Followed all instructions, I’ve Put the Esx_scoreboard File in the Systems scoreboard File. I’ve Put a # Infront of the ‘‘Start scoreboard’’ And i’ve also added the Esx_scoreboard down at the esx’s But it doesn’t seem to work. Can anyone help me with this.