KS-Corporate
Installation
- Unzip the delivered archive into your
resources/folder, under the nameks-corporate. - Import the provided
install.sqlfile into your database. - Add
ensure ks-corporateto yourserver.cfg, afteroxmysqlandqb-core. - Restart your server.
Configuration
Config.Companies = {
["autoshop"] = {
label = "Concession Premium Deluxe",
startingBalance = 5000,
taxRate = 8, -- pourcentage prélevé sur chaque vente
shares = { totalShares = 100 },
},
}
taxRate automatically deducts a percentage of every sale into the server’s coffers — set it to 0 to disable taxation for a given company.
Paying a dividend
Profits can be redistributed to shareholders with a single command:
exports['ks-corporate']:PayDividends('autoshop', 2500)
-- répartit automatiquement la somme entre les actionnaires selon leur nombre de parts
The split strictly follows each associate’s number of shares, visible from the Shareholding tab of the dashboard.
Common issues
The company’s balance doesn’t update after a sale. Check that your sales script calls exports['ks-corporate']:AddCompanyMoney(companyId, amount) rather than editing the qb-banking table directly — KS-Corporate needs that export to log the transaction.
An employee has access to functions reserved for shareholders. Check their grade in Config.Companies[id].grades and that canManageShares isn’t mistakenly enabled at their level.

