Payouts
Every route has a payout. When the leader returns the van, the payout plus the crew bonus is split evenly between the crew members and paid into their account.
How much each player gets
Each player’s share is the route’s payout with the crew bonus added, divided by the number of players in the crew when the route started, rounded down.
| Crew size | Bonus | Each player on a $2,400 route | Paid out in total |
|---|---|---|---|
| 1 | 0 % | $2,400 | $2,400 |
| 2 | 10 % | $1,320 | $2,640 |
| 3 | 20 % | $960 | $2,880 |
| 4 | 30 % | $780 | $3,120 |
- The route’s payout is its
payoutinConfig.Job.orders, or the payout set for it in the Route Creator. A route the creator names automatically getsConfig.Job.defaultRoutePayout(1500 by default). - The bonus for each crew size comes from
Config.Job.crewBonusPercent, see Crew bonus and split. - The bonus and the share are fixed when the route starts. A member who leaves gets nothing, and the others keep the same share. Their share is not divided among the rest.
- A cancelled or lost work order pays nothing, also not for boxes already repaired.
The route cards show the share for your current crew size ($1,320 per player), and so does Your payout under the cards.
The account
The money goes into the framework account in Config.Currency.account, bank by default.
| Framework | account |
|---|---|
| QBCore, Qbox | A money type such as bank or cash. |
| ESX | An account name such as bank or money. cash is changed to money. |
Each payment is handed to the framework with the reason electrician: followed by the payment’s reference. See also Configuration.
How a payment is made
- When the leader returns the van, the server first writes one payment per crew member into its payment ledger, which is kept in the server’s resource KVP. If that fails, the return is refused with Payment storage is unavailable. Keep your van and try returning it again. The van and the work order stay as they are.
- The work order is closed, the van is removed, and every member is paid right away: Work order settled. You earned $1320.
- A payment that cannot be made yet stays pending. This happens when the character is not online, or when the framework refuses the payment. Pending payments are tried again every 5 seconds, also after a restart, and always go to the same character.
Needs administrator review
A payment is put on hold for an administrator when:
- the framework throws an error while paying,
- the ledger cannot be saved right after the money was paid,
- the server stopped while the payment was being made. It is put on hold at the next start.
Held payments are not tried again by themselves, because the money may already have arrived. In the first two cases the player is told Your payment needs administrator review. Reference: … and the server console prints:
[bablo-electricjob] Payment <reference> needs administrator review: <reason>The electricpayments command
The command only works in the server console, for example the txAdmin live console. Players cannot use it in game.
| Command | What it does |
|---|---|
electricpayments | Lists every payment that is not paid yet: reference, state, character identifier, amount and account. The state is pending, in_flight or review_required. |
electricpayments resolve <reference> paid | Marks a held payment as paid. Use it when the money did arrive, for example after finding electrician:<reference> in the framework’s money log. |
electricpayments resolve <reference> retry | Puts a held payment back in the queue. It is paid within a few seconds while that character is online. |
The console answers [bablo-electricjob] Payment resolution: true. It answers false when the payment is not on hold or the last word is not paid or retry.
retry pays the player again. Check the framework’s money log first, so a payment that already arrived is not paid twice.
When the resource stops, the console lists every payment that is still unpaid: [bablo-electricjob] Outstanding payment <reference>: <state>, amount=<amount>.
The mission hook
Framework:onFinishMission(source, data) in frameworks/<framework>/server.lua runs once for every crew member who is online when the van is returned, right after the payments are made. It is empty by default.
| Field | Value |
|---|---|
orderId | The id of the route. |
payout | That member’s share. |
account | Config.Currency.account. |
crewSize | The number of members who were paid. |
leader | true for the leader who returned the van. |
The hook also runs for a member whose payment is still pending. See Exports & Hooks.

