Ace Permission

MSK.IsAceAllowed

Parameters command - string - check for ace permission for this command

Returns hasAcePerm - boolean - whether the Player has Ace Permission for the given Command

local hasAcePerm = MSK.IsAceAllowed(command)

-- Example
local hasAcePerm = MSK.IsAceAllowed('your_command')

-- As an Export:
local hasAcePerm = exports.msk_core:IsAceAllowed(command)

MSK.IsPrincipalAceAllowed

Parameters principal - string - Principal ace - string - ace perm

local isAllowed = MSK.IsPrincipalAceAllowed(principal, ace)

-- Example
local isAllowed = MSK.IsPrincipalAceAllowed('group.admin', 'command.your_command')

-- As an Export:
local isAllowed = exports.msk_core:IsPrincipalAceAllowed(principal, ace)

Last updated