Skip to main content

IsSystemAccessAllowed

This function was added in DSL 1

Description​

Check if system access is unrestricted.

This is used to determine if the script has permission to perform certain actions that require elevated privileges, such as accessing system files or making network requests.

function IsSystemAccessAllowed() --[[ ... ]] end

Parameters​

None.

Return Values​

  • allowed: boolean - true if system access is unrestricted, otherwise false.

Example​

if IsSystemAccessAllowed() then
print('System access is allowed.')
else
print('System access is restricted.')
end