πExports
All client and server exports
CLIENT
OpenBossMenu
Opens the boss menu for the specified organization type.
Parameters:
type(string, optional): Type of organization -'job'or'gang'(default:'job')
Returns:
void
Example:
-- Open job boss menu
exports['zat-bossmenu']:OpenBossMenu('job')
-- Open gang boss menu
exports['zat-bossmenu']:OpenBossMenu('gang')
-- Open job menu (default)
exports['zat-bossmenu']:OpenBossMenu()Use Case:
Adding custom menu access points in other resources
Creating keyboard shortcuts for specific organizations
Integration with job-specific scripts
OpenGangMenu
Convenience function to open the gang boss menu.
Parameters:
None
Returns:
void
Example:
Note: Equivalent to OpenBossMenu('gang')
OpenJobMenu
Convenience function to open the job boss menu.
Parameters:
None
Returns:
void
Example:
Note: Equivalent to OpenBossMenu('job')
CloseBossMenu
Closes the currently open boss menu.
Parameters:
None
Returns:
void
Example:
Use Case:
Programmatically closing the menu in response to other events
Menu cleanup in resource transitions
OpenAdminUI
Opens the admin control panel interface.
Parameters:
None
Returns:
void
Example:
Note: Server-side permission checks still apply
CloseAdminUI
Closes the admin control panel.
Parameters:
None
Returns:
void
Example:
ToggleDuty
Toggles duty status for the player (framework-specific).
Parameters:
None
Returns:
void
Example:
Framework Support:
QB-Core: Uses
QBCore:ToggleDutyeventESX: Uses
ESX:ToggleDutyeventOther frameworks: May need custom implementation
Use Case:
Custom duty toggle buttons in other UIs
Job start/end systems
Payroll tracking systems
ToggleGangDuty
Toggles duty status for gang members.
Parameters:
None
Returns:
void
Example:
Use Case:
Custom duty toggles in gang scripts
Gang activity tracking
Permission-based access systems for gangs
SERVER
GetJobFunds
Get the current funds of a job/organization.
Parameters:
jobName(string): Name of the job/organizationdefault(number, optional): Default value if no funds found (default: 0)
Returns:
number: Current funds amount
Example:
UpdateJobFunds
Update (add/remove) funds for a job/organization.
Parameters:
jobName(string): Name of the job/organizationamount(number): Amount to add/remove (positive for deposit, negative for withdraw)changeType(string): Type of transaction -'deposit','withdraw', or'bonus'reason(string, optional): Reason for the transaction
Returns:
boolean: Success status
Example:
SetJobFunds
Set the funds of a job/organization to a specific amount.
Parameters:
src(number): Player server ID (for logging)jobName(string): Name of the job/organizationamount(number): New funds amount
Returns:
boolean: Success status
Example:
GetCompanyFunds
Alias for GetJobFunds - provides backward compatibility.
Example:
UpdateCompanyFunds(jobName, amount, changeType, [reason]) (Alias)
Alias for UpdateJobFunds - provides backward compatibility.
GetGangFunds
Get the current funds of a gang.
Parameters:
gangName(string): Name of the gangdefault(number, optional): Default value if no funds found (default: 0)
Returns:
number: Current funds amount
Example:
UpdateGangFunds
Update (add/remove) funds for a gang.
Parameters:
gangName(string): Name of the gangamount(number): Amount to add/removechangeType(string): Type of transaction -'deposit','withdraw', or'bonus'reason(string, optional): Reason for the transaction
Returns:
boolean: Success status
Example:
SetGangFunds
Set the funds of a gang to a specific amount.
Parameters:
src(number): Player server ID (for logging)gangName(string): Name of the gangamount(number): New funds amount
Returns:
boolean: Success status
Example:
GetBankingSystem
Get the currently active banking system.
Returns:
string: Name of the active banking system'qb-banking''esx_addonaccount''okokBanking''qs-banking''default'
Example:
GetSupportedBankingSystems
Get a list of all supported banking systems.
Returns:
table: Array of supported banking system names
Example:
AddExternalTransaction
Logs an external financial transaction for an organization.
Parameters:
jobname(string): Name of the organization (job or gang)amount(number): Transaction amount (must be positive)reason(string): Description/reason for the transactiontype(string): Transaction type -'deposit'or'withdraw'
Returns:
void
Example:
Use Case:
Integrating external banking systems
Automated payment processing
Third-party business systems
Audit and compliance logging
Last updated