Server Exports
Server Exports
Below are all the useful exports that you can use in other resources, be sure to read their descriptions.
getSociety
Get all the information about the registered company/gang
---@param {jobName: string}: Registered job or gang name, e.g. 'police' / 'ballas'
---@return table or nil
local society = exports['vms_bossmenu']:getSociety(jobName)getSocietyTransactions
Get a list of all transactions from the company
---@param {jobName: string}: Registered job or gang name, e.g. 'police' / 'ballas'
---@return table or nil
local societyTransactions = exports['vms_bossmenu']:getSocietyTransactions(jobName)addTransaction
Register a new transaction
getMoney
Get company/gang balance
setMoney
Set the balance of the company/gang account
addMoney
Add money to the business/gang account
removeMoney
Remove money from the business/gang account
getEmployees
Get information on all employees of a job
getEmployeesCount
Get the number of employees of a given job
getGangMembers
Get information on all gang members
getGangMembersCount
Get the number of gang members
getClothings
Get information on all job/gang outfits
getClothing
Get information about a specific outfit from job/gang
getPlayerBadge
Get a player's badge number from a specific job
getPlayerBadges
Get all player badge numbers
setPlayerBadge
Set the player a new badge number
sendAnnouncement
Send a message to the job/gang
getGradePermissions
Get permissions information for grade specific jobs or gangs
havePermission
Check if a certain grade of job/gang has permissions for a certain action
Last updated
Was this helpful?