Player::socialClub: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "This property returns players social club name. '''Note: this property is read-only.''' ==See Also== {{Player_block}}")
 
m (category)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:


'''Note: this property is read-only.'''
'''Note: this property is read-only.'''
== Getter ==
* {{RageType|String}} Rockstar Social Club player name
== Example ==
Show socialClub
{{ServersideCode|
<pre>
mp.events.add('playerJoin', player => {
    console.log(`[SERVER]: SocialClub: ${player.socialClub}`);
});
</pre>
}}


==See Also==
==See Also==
{{Player_block}}
{{Player_block}}
[[Category:Player API]]
[[Category:Server-side Property]]

Latest revision as of 17:04, 17 May 2019

This property returns players social club name.

Note: this property is read-only.

Getter

  • String Rockstar Social Club player name

Example

Show socialClub

Server-Side
mp.events.add('playerJoin', player => {
    console.log(`[SERVER]: SocialClub: ${player.socialClub}`);
});

See Also