Lua function to retrieve a leaderboard override entry for a specific player.
◆ Implementation()
| LeaderboardOverrideItem RoomService.GetLeaderboardOverride.Implementation |
( |
ulong | steamID | ) |
|
|
inlineprivate |
Usage:
Lua function to retrieve a leaderboard override entry for a specific player.
Definition RoomServiceLuaFunctions.cs:793
Definition MyPluginInfo.cs:2
- Returns
- LeaderboardOverrideItem Array with the following structure.
Example array = { SteamID = "76561197993793009", overrideNameText = "Kilandor", overridePositionText = "1st", overrideTimeText = "12:34", overridePointsText = "1234", overridePointsWonText = "123" }
- Return values
-
| SteamID | The SteamID of the player. |
| overrideNameText | Current Override Name. |
| overridePositionText | Current Override Position. |
| overrideTimeText | Current Override Time. |
| overridePointsText | Current Override Points. |
| overridePointsWonText | Current Override Points Won. |
Source Code
815 {
816 if (!RoomServiceUtils.IsOnlineHost())
817 {
818 return new LeaderboardOverrideItem() { SteamID = 0, overrideNameText = "", overridePositionText = "", overrideTimeText = "", overridePointsText = "", overridePointsWonText = "" };
819 }
820
821 return ZeepkistNetwork.GetLeaderboardOverride(steamID);
822 }