Client Events

Get Job Employees List

Get a list of all job employees

---@param {jobName: string}: Registered job name e.g. 'police' / 'ambulance'
---@return table or false
ESX.TriggerServerCallback('vms_bossmenu:getJobEmployees', function(employeesList)
    local employeesList = employeesList
    
end, jobName)
Explanation

If you execute the above callback you will get the return information as a table if the job is registered in the config, if not, you will get the return as false.

Parameters:

  • isOnline: boolean

  • name: string

  • identifier: string

  • job: table

    • name: string

    • label: string

    • grade: number

    • grade_name: string

    • grade_label: string

Backward callbacks from esx_society

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

Backward callbacks from qb-management

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


Get Gang Employees List

Get a list of all gang members

---@param {gangName: string}: Registered gang name e.g. 'ballas' / 'vagos'
---@return table or false
ESX.TriggerServerCallback('vms_bossmenu:getGangMembers', function(membersList)
    local membersList = membersList
    
end, gangName)
Explanation

If you execute the above callback you will get the return information as a table if the gang is registered in the config, if not, you will get the return as false.

Parameters:

  • isOnline: boolean

  • name: string

  • identifier: string

  • job: table

    • name: string

    • label: string

    • grade: number

    • grade_name: string

    • grade_label: string

Backward callbacks from qb-management

We have a backward callback for qb-management, this means that if you have an qb-gangmenu:server:GetEmployees callback used somewhere, you won't necessarily need to modify it.

Last updated

Was this helpful?