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}}")
 
(Add example)
Line 2: Line 2:


'''Note: this property is read-only.'''
'''Note: this property is read-only.'''
== 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}}

Revision as of 10:59, 1 January 2019

This property returns players social club name.

Note: this property is read-only.

Example

Show socialClub

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

See Also