IsObjectInACLGroup: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool isObjectInACLGroup (string ObjectName, string GroupName)
bool isObjectInACLGroup ( string object, string group )
</syntaxhighlight>  
</syntaxhighlight>  
===Required Arguments===  
===Required Arguments===  


*'''ObjectName:''' The Object name of the Object you wish to check is in the group for example resource.race or user.Jim
*'''object:''' the name of the object to check. Examples: "resource.ctf", "user.Jim".
*'''GroupName:''' The Group name of the group you wish to check the Object is in for example Admin
*'''group:''' the name of the group to look in. Example: "Admin"


===Returns===
===Returns===
Returns ''true'' if the ObjectName is in the specified GroupName. ''false'' otherwise.
Returns ''true'' if the object is in the specified group, ''false'' if it is not or invalid arguments where passed.


==Example==  
==Example==  

Revision as of 22:10, 30 March 2009

This function is used to determine if an object is in a group.

Syntax

bool isObjectInACLGroup ( string object, string group )

Required Arguments

  • object: the name of the object to check. Examples: "resource.ctf", "user.Jim".
  • group: the name of the group to look in. Example: "Admin"

Returns

Returns true if the object is in the specified group, false if it is not or invalid arguments where passed.

Example

--TODO

See Also