v2.0.4 minor
Readable own row, theme fixes, on-duty police and a new update checker
16changes

Readable own row, theme fixes, on-duty police and a new update checker
16changes

[02] Release
Your own row is now easy to spot, the theme options in the config work again, and robberies count only on-duty police. Many duty, job and loading fixes, a standalone mode, and a new update checker in the server console.
ox_lib and oxmysql are now required dependencies: start them before qs-scoreboard.config/config.lua has many new options (Config.CountOnlyOnDutyPolice, Config.UseFrameworkDuty, Config.CurrentPoliceExport, Config.PeakPlayers, Config.PlayOpenSound, Config.OpenSoundVolume, Config.ListCacheTime, Config.Translations, theme sourceRowBackground). We recommend using the new file and copying your own values into it.Replace every file in the resource, except what you edited yourself:
fxmanifest.lua: new dependencies and the update checker.config/config.lua: new options, see above.client/main.luaclient/framework/esx.luaclient/framework/qb.luaserver/main.luaserver/updater.lua (new)server/framework/esx.luaserver/framework/qb.luaserver/framework/standalone.lua (new)web/*The devscoreboard test command now requires admin permissions and respects Config.MockCommand.
When the resource starts, the console shows your version and whether you are up to date. When an update is available, it lists what changed and links to the full changelog.
The scoreboard now also works on servers without ESX or QBCore.
Config.PeakPlayers = "auto" shows the real highest player count since the server started. You can still set a fixed number.
Config.PlayOpenSound turns the open sound on or off, and Config.OpenSoundVolume sets its volume.
The "YOU" row now has a solid background and an accent edge, so it stays readable on bright game scenes. It can be styled with the new sourceRowBackground theme option.
Your own row is always pinned on top and the list is sorted by ID by default. Escape clears the search first, and the close key follows your key rebinds.
Fonts and icons now come with the script, so the UI no longer depends on external websites.
Texts that could not be translated before are now in Config.Translations.
background1, background2, bodyBackground and the logo are applied again. color1 recolors all accents and color3 is the icons background.
Police use the framework duty (ESX job.onDuty / QB job.onduty), and robberies count only on-duty police (Config.CountOnlyOnDutyPolice). Config.CurrentPoliceExport now actually calls your export.
A player's duty status no longer copies the status of the player above them in the list.
Active Jobs now counts every configured job, not only the ones shown in the player list.
Opening the scoreboard during character selection, or with a character without a name, no longer shows errors.
Job levels load when the player joins, are freed when they leave, and no longer load twice on start.
The player list is built at most once per second and shared by everyone who opens the scoreboard (Config.ListCacheTime).