public static ulong GetSteamID(this VRC.Player player) { //Second on the right is player's photon class hash table, you'll see it when vrchat updates. ulong steamID = player.ToVRCPlayer().DBHGDAHAJIP; var photonplr = player.BILIBAMEKKJ; var hashtable = (Hashtable)photonplr.BDDEGEDBBLE; ulong steamID2 = ulong.Parse(hashtable["steamUserID"].ToString()); return(steamID > 10000000000000000 ? steamID : steamID2); }
public CoffinUser(VRC.Player player, bool LogSteamStuff = true) { Plr = player; Username = player.GetUsername(); UserID = player.GetUserID(); AvtrID = player.GetAvatarID(); Avatar = player.ToVRCPlayer().GetAvatar(); if (LogSteamStuff) { IP = player.GetIP(); SteamID = player.GetSteamID(); } }
public static string GetAvatarURL(this VRC.Player player) { return(player.ToVRCPlayer().GetAvatar().assetUrl); }