AclSetRight

From Multi Theft Auto: Wiki
Revision as of 13:22, 26 November 2007 by ChrML (talk | contribs)
Jump to navigation Jump to search

This functions changes or adds the given right in the given ACL. The access can be true or false and specifies whether the ACL gives access to the right or not.

Syntax

bool aclSetRight ( acl theAcl, string rightName, bool hasAccess )

Required Arguments

  • theAcl: The ACL to change the right of
  • rightName: The right to add/change the access property of
  • hasAccess: Whether the access should be set to true or false

Returns

Returns true if the access was successfully changed, false or nil if it failed for some reason, ie. invalid ACL or the rightname is invalid.

Example

This example does...

--TODO

See Also