Skip to main content

GetPlayerSocialClubId

Gets the social club id from a player

C#​

string NAPI.Player.GetPlayerSocialClubId(Player player);

Parameters​

  • player: parameter input should be in Player type

Example​

[Command("mysocialclub")]
public void MySocialClubId(Player sender)
{
string socialclubid = NAPI.Player.GetPlayerSocialClubId(sender);
sender.SendChatMessage("~g~Your social club id is: " + socialclubid);
}