wew, it’s been a while since i last released something on this forum!
today i bring you a leaderboard, which is meant for those kinds of minigames or TDM servers where you always have a visible leaderboard on the side of the screen
here’s a screenshot of how it looks ingame
it has an easy to use API to interface your scripts with it:
example on how to add/modify players on the leaderboard (WORKS ONLY SERVERSIDE, NOT ON CLIENT TO PREVENT LUA INJECTION VULNERABILITIES)
TriggerEvent("Leaderboard:addplayer",{name="fake 1",rank=1,points="500 kills"} ) --add/edit a player
a player object is made by 3 elements: the player’s name (string) the rank of the player (int) and the score of the player (string) as shown above. if a position doesn’t have a player set it will display “####” as name and score.