Resource:Gang Manager/setGangLeader: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Server function}} Sets leader of the gang. ==Syntax== <syntaxhighlight lang="lua"> setGangLeader ( string Gang, string AccountName ) </syntaxhighlight> ===Required Arguments=== *'''Gang:''' ID of t...")
 
No edit summary
 
Line 4: Line 4:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
setGangLeader ( string Gang, string AccountName )
bool setGangLeader ( string Gang, string AccountName )
</syntaxhighlight>
</syntaxhighlight>


Line 12: Line 12:


===Returns===
===Returns===
Returns ''true'' if gang leader was successfully set or ''false'' otherwise.
*'''Success:''' Boolean that is true if the gang leader was set successfully or false otherwise

Latest revision as of 23:28, 23 June 2014

Sets leader of the gang.

Syntax

bool setGangLeader ( string Gang, string AccountName )

Required Arguments

  • Gang: ID of the gang you wish to change the leader of
  • Leader: Account name of the player which you wish to set as leader

Returns

  • Success: Boolean that is true if the gang leader was set successfully or false otherwise