GetPlayerSocialClubId: Difference between revisions
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
{{Example}} | {{Example}} | ||
{{#tag:syntaxhighlight| | {{#tag:syntaxhighlight| | ||
[Command("mysocialclub"] | [Command("mysocialclub")] | ||
public void MySocialClubId(Client sender) | public void MySocialClubId(Client sender) | ||
{ | { | ||
Revision as of 15:10, 12 December 2019
Gets the social club id from a player
C# Syntax
string 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);
}