Player::socialClub: Difference between revisions

From RAGE Multiplayer Wiki
(Add example)
m (category)
 
(One intermediate revision by the same user 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 ==
== Example ==
Line 15: Line 18:
==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