GetPlayerSocialClubId

From RAGE Multiplayer Wiki
Revision as of 15:09, 12 December 2019 by Muphy (talk | contribs) (Created page with "Gets the social club id from a player {{CSharpContainer| {{#tag:syntaxhighlight|bool {{Template:CSharp_Serverside_namespace}}Player.GetPlayerSocialClubId(Client player);|lan...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Gets the social club id from a player


C# Syntax

bool NAPI.Player.GetPlayerSocialClubId(Client player);

Parameters

  • player: parameter input should be in Client type


Example

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