Hooks
This is a list of all the hooks available in the company manager.
Registering Hooks
To register a hook, use the following example:
exports.bcs_companymanager:RegisterHook(hookName, function(data)
print(json.encode(data, {indent = true}))
return true
end, {
print = true, -- Prints the hook to the console when it is called
})
List of Hooks
BillingPaid
- Called when billing is paid.BillingCreated
- Called when a new billing is created.BillingDeleted
- Called when a billing is deleted.CompanyDepositedMoney
- Called when money is deposited into a company.CompanyWithdrawnMoney
- Called when money is withdrawn from a company.CompanyRankDeleted
- Called when a company rank is deleted.HiredOnlineEmployee
- Called when an employee is hired online.RemovedOnlineEmployee
- Called when an employee is removed online.RemovedOfflineEmployee
- Called when an employee is removed offline.
Last updated on