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

Lua function to retrieve a leaderboard override entry for a specific player.

Member Function Documentation

◆ Implementation()

LeaderboardOverrideItem RoomService.GetLeaderboardOverride.Implementation ( ulong steamID)
inlineprivate

Usage:

RoomService.GetLeaderboardOverride("76561197993793009");
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
SteamIDThe SteamID of the player.
overrideNameTextCurrent Override Name.
overridePositionTextCurrent Override Position.
overrideTimeTextCurrent Override Time.
overridePointsTextCurrent Override Points.
overridePointsWonTextCurrent 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 }