♻️Exports

The following exports will be useful in case you want to execute certain functions outside our resource

Client Exports

GetBills

This export can be used to obtain all pending bills that a user has

exports['origen_masterjob']:GetBills()
ShowBills

This export can be used in case you want to open the invoice menu externally

exports['origen_masterjob']:ShowBills()

Server Exports

GetBusiness

This export can be used to obtain the information of a specific business through its id

exports['origen_masterjob']:GetBusiness(businessId)
GetBusinesses

This export can be used to obtain the list of all businesses and their respective information

exports['origen_masterjob']:GetBusinesses()
GetEmployeesOnDuty

This export can be used to obtain the list of employees on duty at a business using its id

exports['origen_masterjob']:GetEmployeesOnDuty(businessId)
GetBusinessMoney

This export can be used to obtain the amount of money in a business's fund using its id

exports['origen_masterjob']:GetBusinessMoney(businessId)
AddBusinessMoney

This export can be used to add money to the business's fund using its id and the desired amount to add

exports['origen_masterjob']:AddBusinessMoney(businessId, amountToAdd)
RemoveBusinessMoney

This export can be used to remove money from the business's fund using its id and the desired amount to remove

exports['origen_masterjob']:RemoveBusinessMoney(businessId, amountToRemove)

Last updated