Skip to content
KS-Corporate

KS-Corporate

Installation

  1. Unzip the delivered archive into your resources/ folder, under the name ks-corporate.
  2. Import the provided install.sql file into your database.
  3. Add ensure ks-corporate to your server.cfg, after oxmysql and qb-core.
  4. 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.

Something not covered here? Join our Discord.