Resource:Gang Manager/setGangPermissions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 4: Line 4:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
setGangPermissions ( string Gang, integer MinSettings, integer MinRules, integer MinDeposit, integer MinWithdraw, integer MinLevel, integer MinInvKick )
bool setGangPermissions ( string Gang, integer MinSettings, integer MinRules, integer MinDeposit, integer MinWithdraw, integer MinLevel, integer MinInvKick )
</syntaxhighlight>
</syntaxhighlight>


Line 17: Line 17:


===Returns===
===Returns===
Returns ''true'' if gang permission were was successfully set or ''false'' otherwise.
*'''Success:''' Boolean that is true if gang permissions were successfully set

Latest revision as of 23:31, 23 June 2014

Sets permission levels of the gang.

Syntax

bool setGangPermissions ( string Gang, integer MinSettings, integer MinRules, integer MinDeposit, integer MinWithdraw, integer MinLevel, integer MinInvKick )

Required Arguments

  • Gang: ID of the gang you wish to set permissions of
  • 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

Returns

  • Success: Boolean that is true if gang permissions were successfully set