Resource:Gang Manager/getGangPermissions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Server function}} Gets current permissions of the gang. ==Syntax== <syntaxhighlight lang="lua"> getGangPermissions ( string Gang ) </syntaxhighlight> ===Required Arguments=== *'''Gang:''' ID of the...")
 
No edit summary
Line 4: Line 4:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
getGangPermissions ( string Gang )
int int int int int int getGangPermissions ( string Gang )
</syntaxhighlight>
</syntaxhighlight>


Line 11: Line 11:


===Returns===
===Returns===
Returns levels of current minimal permissions to edit settings, edit rules, deposit money, withdraw money, change level and invite or kick member of the gang or ''false'' otherwise.
*'''Gang:''' Minimal member level required to edit settings
*'''Gang:''' Minimal member level required to edit rules
*'''Gang:''' Minimal member level required to deposit money
*'''Gang:''' Minimal member level required to withdraw money
*'''Gang:''' Minimal member level required to change level of members with lower level
*'''Gang:''' Minimal member level required to invite and kick members with lower level

Revision as of 23:21, 23 June 2014

Gets current permissions of the gang.

Syntax

int int int int int int getGangPermissions ( string Gang )

Required Arguments

  • Gang: ID of the gang you wish to get permissions of

Returns

  • Gang: Minimal member level required to edit settings
  • Gang: Minimal member level required to edit rules
  • Gang: Minimal member level required to deposit money
  • Gang: Minimal member level required to withdraw money
  • Gang: Minimal member level required to change level of members with lower level
  • Gang: Minimal member level required to invite and kick members with lower level