ZH-CN/aclGroupGetName: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server function}} <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> 此函数用于获取给定ACL组的名...")
 
No edit summary
 
Line 28: Line 28:
<!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc -->
<!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc -->
{{ACL_functions}}
{{ACL_functions}}
[[zh-cn:aclGroupGetNameServer]]
[[en:aclGroupGetName]]

Latest revision as of 06:36, 6 February 2021

此函数用于获取给定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