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
 
(One intermediate revision by the same user not shown)
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.
*'''MinSettings:''' Minimal member level required to edit settings
*'''MinRules:''' Minimal member level required to edit rules
*'''MinDeposit:''' Minimal member level required to deposit money
*'''MinWithdraw:''' Minimal member level required to withdraw money
*'''MinLevel:''' Minimal member level required to change level of members with lower level
*'''MinInvKick:''' Minimal member level required to invite and kick members with lower level

Latest revision as of 23:22, 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

  • MinSettings: Minimal member level required to edit settings
  • MinRules: Minimal member level required to edit rules
  • MinDeposit: Minimal member level required to deposit money
  • MinWithdraw: Minimal member level required to withdraw money
  • MinLevel: Minimal member level required to change level of members with lower level
  • MinInvKick: Minimal member level required to invite and kick members with lower level