AclGroupGetName: Difference between revisions
Jump to navigation
Jump to search
m (fix oop syntax) |
Dmitry7zip (talk | contribs) m (Added arg type in syntax) |
||
Line 7: | Line 7: | ||
<!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --> | <!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
string aclGroupGetName ( aclGroup ) | string aclGroupGetName ( aclgroup aclGroup ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[aclgroup]]:getName|name|}} | {{OOP||[[aclgroup]]:getName|name|}} |
Revision as of 10:08, 3 January 2015
This function is used to get the name of the given ACL group.
Syntax
string aclGroupGetName ( aclgroup aclGroup )
OOP Syntax Help! I don't understand this!
- Method: aclgroup:getName(...)
- Variable: .name
Required Arguments
- aclGroup: The ACL group to get the name of
Returns
Returns the name of the given ACL group as a string if successfull, false/nil if the aclGroup is invalid or it fails for some other reason.
Example
This example outputs to the console that "Admin's are ready to watch".
addEventHandler("onResourceStart",resourceRoot,function() outputConsole(aclGroupGetName(aclGetGroup("Admin")).."'s are ready to watch :)",root) end)
See Also
- aclCreate
- aclCreateGroup
- aclDestroy
- aclDestroyGroup
- aclGet
- aclGetGroup
- aclGetName
- aclGetRight
- aclGroupAddACL
- aclGroupAddObject
- aclGroupGetName
- aclGroupList
- aclGroupListACL
- aclGroupListObjects
- aclGroupRemoveACL
- aclGroupRemoveObject
- aclList
- aclListRights
- aclReload
- aclRemoveRight
- aclSave
- aclSetRight
- hasObjectPermissionTo
- isObjectInACLGroup