Show actual job labels rather than database job names at the top
Config.lua
Change:
[1] = {name = 'police', fa = '<i class="fad fa-siren-on"></i>'},
To:
[1] = {name = 'police', fa = '<i class="fad fa-siren-on"></i>', label = 'Police'},
Do this to each job addition in the config.
Change
script.js - line 9
<span class="leaderboard__title--bottom" style="opacity: 1.0;">`+table.whitelistedjobs[i].fa+` `+table.whitelistedjobs[i].name+`</span>
To:
<span class="leaderboard__title--bottom" style="opacity: 1.0;">`+table.whitelistedjobs[i].fa+` `+table.whitelistedjobs[i].label+`</span>
To change the job name to the job label on each player
Change
script.js - line 68
table.insert(list, {id = v.id, job = xPlayer.job.name, name = v.name, firstname = v.first, lastname = v.last, image = v.image, ping = GetPlayerPing(v.id), admin = xPlayer.getGroup() == 'superadmin', vip = v.vip})
To
table.insert(list, {id = v.id, job = xPlayer.job.label, name = v.name, firstname = v.first, lastname = v.last, image = v.image, ping = GetPlayerPing(v.id), admin = xPlayer.getGroup() == 'superadmin', vip = v.vip})
I tried to upload an image, but I couldn’t seem to with this post.