Skip to main content

GetPlayerSocialClubId

Gets the social club id from a player

  • player: parameter input should be in Player type

{{#tag:syntaxhighlight| [Command("mysocialclub")] public void MySocialClubId(Player sender) {

   string socialclubid = ``Player.GetPlayerSocialClubId(sender);
   sender.SendChatMessage("~g~Your social club id is: " + socialclubid);

} |lang=csharp}} }}