Lua function to get an entry from the leaderboard.
◆ Implementation()
| LeaderboardItem RoomService.GetLeaderboardEntry.Implementation |
( |
ulong | steamID | ) |
|
|
inlineprivate |
Usage:
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
-
| SteamID | The SteamID of the player. |
| Time | Time on Leaderboard |
| Username | Username 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 }