Skip to main content

PermissionProviderClient

This item only works when running on the client. Client

Permission provider using the remote event. See PermissionServiceClient.

Functions

PromiseIsAdmin

PermissionProviderClient:PromiseIsAdmin(playerPlayer | nil) → Promise<boolean>

Returns whether the local player is an admin.

Show raw api
{
    "functions": [
        {
            "name": "PromiseIsAdmin",
            "desc": "Returns whether the local player is an admin.",
            "params": [
                {
                    "name": "player",
                    "desc": "",
                    "lua_type": "Player | nil"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<boolean>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 34,
                "path": "src/permissionprovider/src/Client/Providers/PermissionProviderClient.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "PermissionProviderClient",
    "desc": "Permission provider using the remote event. See [PermissionServiceClient].",
    "realm": [
        "Client"
    ],
    "source": {
        "line": 7,
        "path": "src/permissionprovider/src/Client/Providers/PermissionProviderClient.lua"
    }
}