Client Exports

openBossMenu

Opening the company / gang boss menu

---@param {name: string}: Job / gang name e.g. 'police', 'mechanic', 'ballas'
---@param {type: string}: 'job' or 'gang'
exports['vms_bossmenu']:openBossMenu(name, type)
chevron-rightBackward event from esx_societyhashtag

We have a backward events for esx_society, this means that if you have an esx_society:openBossMenu event used somewhere, you won't necessarily need to modify it.

Note that in using this you still need to register the job/gang in config.lua Config.JobMenusSettings

chevron-rightBackward event from qb-managementhashtag

We have a backward events for qb-management, this means that if you have an qb-bossmenu:client:OpenMenu, qb-gangmenu:client:OpenMenu event used somewhere, you won't necessarily need to modify it.

Note that in using this you still need to register the job/gang in config.lua Config.JobMenusSettings


openDressingRoom

Opening the company / gang dressing room

---@param {name: string}: Job / gang name e.g. 'police', 'mechanic', 'ballas'
---@param {type: string}: 'job' or 'gang'
exports['vms_bossmenu']:openDressingRoom(name, type)
chevron-rightBackward event from qb-managementhashtag

We have a backward events for qb-management, this means that if you have an qb-bossmenu:client:Wardrobe event used somewhere, you won't necessarily need to modify it.

Note that in using this you still need to register the job/gang in config.lua Config.JobMenusSettings


getGradePermissions

Get permissions information for grade specific jobs or gangs

chevron-rightExplanationhashtag

Results:

Getting informations about grade permissions for which no permissions are configured:

Getting informations about grade perms for which it has permissions configured

Getting informations about grade perms, which is entered in theConfig.JobMenusSettings - maxPermissionsGrades


havePermission

Check if a certain grade of job/gang has permissions for a certain action

chevron-rightExplanationhashtag

Example:

Permissions List:

  • employeesAccess

    employeesGrantBonus employeesChangeGrade

    employeesFire

    employeesHire

  • clothingAccess

    clothingCreate

    clothingModify

  • safeAccess

    safeBalance

    safeWithdraw

    safeDeposit

    safeTransfer

    safeTransactions

  • stashAccess

  • announcementsAccess

  • resumesAccess

  • taxesAccess

Last updated