IsObjectInACLGroup: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Server function}} This function is used to determine if an object is in a group. ==Syntax== <syntaxhighlight lang="lua"> bool isObjectInACLGroup (string ObjectName, string GroupName) </co...)
 
No edit summary
Line 7: Line 7:
bool isObjectInACLGroup (string ObjectName, string GroupName)
bool isObjectInACLGroup (string ObjectName, string GroupName)
</syntaxhighlight>  
</syntaxhighlight>  
===Required Arguments===
*'''ObjectName:''' The Object name of the Object you wish to check is in the group for example resource.race or user.Jim
*'''GroupName:''' The Group name of the group you wish to check the Object is in for example Admin


===Returns===
===Returns===

Revision as of 22:07, 30 March 2009

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

Syntax

bool isObjectInACLGroup (string ObjectName, string GroupName)

Required Arguments

  • ObjectName: The Object name of the Object you wish to check is in the group for example resource.race or user.Jim
  • GroupName: The Group name of the group you wish to check the Object is in for example Admin

Returns

Returns true if the ObjectName is in the specified GroupName. false if it is not or invalid arguements where passed.

Example

--TODO

See Also