Permissions

Script allows you to create permissions and assign them to employees. This exports gives you option to obtain all existing permissions or permissions assigned to given CitizenID.

Types for functions below are listed in file server/exportTypes.lua as Permission.

Get all permissions

To retrieve all existing permissions, use function as presented below:

exports["bl-mdt"]:GetPermissions()
Get employee permissions

To retrieve permissions assigned to given employee, use function as presented below with CitizenID as only param:

exports["bl-mdt"]:GetPermissions("ABC123")

Last updated