GetPlayerSocialClubId: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
Line 12: Line 12:
{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|
[Command("mysocialclub")]
[Command("mysocialclub")]
public void MySocialClubId(Client sender)
public void MySocialClubId(Player sender)
{
{
     string socialclubid = {{Template:CSharp_Serverside_namespace}}Player.GetPlayerSocialClubId(sender);
     string socialclubid = {{Template:CSharp_Serverside_namespace}}Player.GetPlayerSocialClubId(sender);

Latest revision as of 21:50, 22 December 2022

Gets the social club id from a player


C# Syntax

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);
}