ZH-CN/aclGroupGetName

From Multi Theft Auto: Wiki
Revision as of 06:35, 6 February 2021 by Qwe7769611 (talk | contribs) (Created page with "__NOTOC__ {{Server function}} <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> 此函数用于获取给定ACL组的名...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

此函数用于获取给定ACL组的名称.

语法

string aclGroupGetName ( aclgroup aclGroup )

OOP Syntax Help! I don't understand this!

Method: aclgroup:getName(...)
Variable: .name


必填参数

  • aclGroup: 要获取其名称的ACL组

返回值

如果成功,则以字符串形式返回给定ACL组的名称;如果ACL组无效或由于其他原因失败,则返回“false”或“nil”.

示例

这个例子输出到控制台,"管理员已经准备好监视:)"

addEventHandler("onResourceStart", resourceRoot, function()
	outputConsole(aclGroupGetName(aclGetGroup("Admin")).."'s are ready to watch :)",root)
end)

See Also