RoomService v2.3.1
Loading...
Searching...
No Matches
RoomService.GetLeaderboardEntry Class Reference

Lua function to get an entry from the leaderboard.

Member Function Documentation

◆ Implementation()

LeaderboardItem RoomService.GetLeaderboardEntry.Implementation ( ulong steamID)
inlineprivate

Usage:

RoomService.GetLeaderboardEntry("76561197993793009");
Lua function to get an entry from the leaderboard.
Definition RoomServiceLuaFunctions.cs:760
Definition MyPluginInfo.cs:2
Returns
LeaderboardItem Array with the following structure.
Example array = { SteamID = "76561197993793009", Time = 1337, Username = "Kilandor" }
Return values
SteamIDThe SteamID of the player.
TimeTime on Leaderboard
UsernameUsername on Leaderboard

Source Code

780 {
781 if (!RoomServiceUtils.IsOnlineHost())
782 {
783 return new LeaderboardItem() { SteamID = 0, Time = 0, Username = "" };
784
785 }
786
787 return ZeepkistNetwork.GetLeaderboardEntry(steamID);
788 }