- Documentation
- 03Justice
Points licenseNew
The points license: a points balance on the driving license, points and revocations carried by penal code rows, applied when files are approved, cancelled with them, and applied in game if you want.
The points license gives each citizen’s driving license a points balance. Some rows of the penal code deduct points, or revoke the license for a time; these deductions apply when an offense file is approved, and undo themselves if the file is deleted, expunged or fixed.
Everything lives in the MDT, including for a record typed by hand. Only applying it in game (revoking then giving back the character’s license) depends on the Character licenses integration.
Turning it on
Section titled “Turning it on”license-points-settingsThe points license is off by default. It is set up in the Penal code module, Points license tab, with Penal code › Set up points license (command by default; administrators always have it).
- Tick Turn on the points license.
- Set the Starting points: the points of a new license, from 1 to 100 (12 by default).
- Pick the Points recovery:
- No recovery: lost points only come back by hand;
- After a delay: all points come back after this Delay (days) with no new loss (from 1 to 3,650 days).
- Pick the In-game license: the license the MDT revokes and gives back in game.
Automatic uses
driveron QBCore and Qbox,driveon ESX; otherwise, pick a type from the list. - Click Save.
Below the settings, a message tells whether the Character licenses integration is on (a revocation is then applied in game) or not (points and revocations stay in the MDT).
A license revoked for a zero balance isn’t recovered by the delay: points must be given back by hand. Raising the starting points gives points back to everyone (the balance is the starting points minus the points lost).
Turning the system off stops any new deduction and any in-game change. What exists is kept; a deleted file still gives its points back.
Penal code rows
Section titled “Penal code rows”license-points-lineOnce the system is on, each penal code row (Code tab) gets two more fields:
| Field | Role |
|---|---|
| Points deducted | the points the offense costs (from 0 to 100) |
| License revocation | checkbox: the offense also revokes the license |
| Revocation length and Length unit | the revocation’s length, in Hours or Days; with no length, the revocation is Permanent (until lifted by hand) |
In the code’s table, the Points deducted column shows the number of points, and License revocation the length (“7 days”) or Permanent. These columns import and export to CSV like the others. In a file, an offense’s details recall what it costs: “−4 points”, “License revocation · 7 days”.
Each file keeps a copy of its rows: changing a row’s points or revocation doesn’t touch files already recorded.
When a file is approved
Section titled “When a file is approved”Deductions apply when the offense file is closed: approved by the justice department, or recorded directly for a type without review. A pending or rejected file deducts nothing.
For each offense in the file:
- its points are taken from the citizen’s balance;
- if it carries a license revocation, the license is suspended for its length, starting from approval (days are counted as calendar days, in your organization’s time zone), or permanently revoked with no length.
A zero balance revokes the license, with no end date, as long as the balance stays at zero: it comes back as soon as points come back (given back by hand, file cancelled, starting points raised). A suspension with a length ends on its own when it runs out.
| Status | When |
|---|---|
| Valid | positive balance, no suspension running |
| Suspended until … | a suspension with a length is running |
| Revoked: zero balance | the balance is 0 |
| Permanently revoked | a suspension with no length is running |
When a file is cancelled
Section titled “When a file is cancelled”Nothing is ever deleted: each deduction stays in the history, struck through, with the reason it was cancelled.
| What happens to the file | Effect on the license | In the history |
|---|---|---|
| File deleted | the points come back, the resulting suspension is lifted | “cancelled: file deleted” |
| Conviction expunged, by hand or automatically | same | “cancelled: conviction expunged” |
| File fixed | deductions of removed or changed offenses are cancelled, those of new offenses apply | “cancelled: file corrected” |
| File restored from the archives, conviction restored | the deductions come back | new movements |
The citizen record’s Licenses tab
Section titled “The citizen record’s Licenses tab”citizen-sheet-license-pointsWhen the system is on, the citizen record has a Licenses tab (with Citizens › Points license › See points). At the top, the Driving license card shows:
- the balance out of the starting points (“8 / 12”) and the license status;
- the date all points will come back, if recovery is on;
- what happens in game: applied to the in-game license, revoked in game by the MDT, record typed by hand (nothing in game) or integration off;
- the History: for each movement, the file (link), the offense, the points, the date and the author. Only the last 20 movements are shown.
On a record that comes from the game with the Character licenses integration, the licenses read in game follow the card, as described in Licenses.
Actions by hand
Section titled “Actions by hand”Each action requires a Reason (at least 3 characters) and its own permission:
| Action | What it does | Permission |
|---|---|---|
| Give back points | gives points back, up to the starting points (judge decision, recovery course…) | Points license › Give back points |
| Suspend | suspends the license For a time (hours or days) or Permanent; you must hold the button | Points license › Suspend the license |
| Lift the suspension | gives back a suspended or permanently revoked license | Points license › Lift a suspension |
A license revoked for a zero balance can’t be lifted: give points back.
In game
Section titled “In game”Applying it in game requires the Character licenses integration on (Settings › Game › Integrations) and a record that comes from the game:
- when the license becomes invalid (suspended or revoked), the MDT revokes the matching in-game license;
- when it becomes valid again (lifted, run out, points given back), it gives it back in game, only if the MDT had revoked it;
- if the game says the character doesn’t have this license, nothing is done.
These automatic changes show in the Licenses tab’s Latest changes and in the audit log with Points license as author. What the revocation really changes in game depends on your scripts: see What it really changes in game.
Notifications and log
Section titled “Notifications and log”The member who owns the character (the player linked to their account, see Accounts and characters) gets a notification, Justice category, when they lose or get back points, and when their license is suspended, revoked, or valid again. They aren’t notified of an action they took themselves.
Each movement (settings, a file’s deductions, cancellation, points given back, suspension, lift, end of term, recovery) is written to the audit log.
Who can do what
Section titled “Who can do what”| Permission | What it allows | Default |
|---|---|---|
| Penal code › Set up points license | turn the system on, starting points, recovery, in-game license | command |
| Citizens › Points license › See points | the Licenses tab: balance, status, history | every rank |
| Citizens › Points license › Give back points | give points back by hand | supervisors and up |
| Citizens › Points license › Suspend the license | suspend by hand (for a time or permanently) | supervisors and up |
| Citizens › Points license › Lift a suspension | give back a suspended or revoked license | supervisors and up |
Each row’s points and revocation are set with Penal code › Write offenses, like the rest of the row. Administrators always have all these rights.