Kartik Scripts

Department

Staff, reports, training, inspections and finances live on the tablet and are saved in the database (oxmysql). Grades at Config.BossGrade (4, Chief) and above, and players with the admin ace, are bosses.

Staff

  • Everyone: the roster (online and offline), hours this week and their own shifts. Shifts are clocked at the duty lockers.
  • Bosses: hire (search citizens), promote, demote and fire anyone below their own grade, even offline. Recent changes are listed.
  • Bosses: grant and revoke certificates.

With qbx_management the Chief also has the usual boss office. Settings: Config.Staff.

Reports

When a call ends, a draft incident report is written for it: type, address, responders and their share, tasks, cause, rescued, casualties and time on scene. The call timeline and fire investigation are added (evidence numbers and chain of custody).

Anyone who worked the call, or a boss, files it with:

  • the actions taken (fire attack, search & rescue, ventilation, water supply, medical, extrication, hazmat, overhaul, investigation, traffic, evacuation, salvage)
  • property loss
  • a narrative (30 characters minimum)

Filing gives 40 XP and a $150 bonus (Config.Reports). Bosses can delete reports (logged in the audit log). Cancelled calls get no report.

Training

Certificates unlock tools, the rescue boat and garage vehicles (Config.Certifications):

CertificateUnlocks
Driver / OperatorEngines with cert = 'driver'
Ladder and rescue cushionPortable ladder, jump cushion
Vehicle extricationSpreaders, cutter, ram, airbags, rescue saw, stabilisers
Rescue diverDiving gear
Rescue boatDeploying the rescue boat on water calls
Wildland firefightingThe drip torch
Pump operatorRunning the pump panel (when gates.pumpPanel = 'pump')
SCBA and interiorGoing on air (when gates.mask = 'scba')
Technical rescueRope, confined space and heavy lifting (when the rescue's cert is set)

Each course is a 4-question test at any station (3 to pass, 10 minutes to retry), then a hands-on exam made of minigames: the pump operator test, a timed hydrant connection, cutting and spreading, SCBA inspection, victim search, controlled suppression and more. The exam can need an instructor of grade 3+ nearby (practical.instructor.required).

Passing gives 50 XP. Grades at allAtGrade (4) and above hold every certificate. enforce = false keeps the courses but lets everyone use everything.

Inspections

Off-call work at 16 businesses (Config.Inspections.sites):

  1. Start the inspection on the tablet while on site.
  2. Walk the site. Each of the 5 items has its own spot on a wall around the business, with an orange marker and a prop where it fits (extinguisher, gas cylinders, electrical box, alarm bell). The tracker shows how far each one is.
  3. At an item press E and check it hands-on, with the camera on it:
ItemHow you check it
Fire extinguishersTest each part (gauge, pin and seal, service tag, mounting, hose), mark the faulty ones, sign off
Emergency exitsPush the panic bar, walk the route, test the exit sign, emergency light and door closer
Smoke detectors and alarmRead the alarm panel line by line and pick what it shows
Electrical safetyMark every hazard you can see around the panel
Flammable storageMark every storage hazard (propane, rags, chemicals, fuel cans, stock height)
SprinklersRead the riser gauge, the control valve and the heads, then make the call
Occupancy and signageCheck each sign and plan is there and readable

Defects are rolled when the inspection starts (chance, second per item in Config.Inspections.checks), so the minigame knows the real answer: you only finish an item by finding what is wrong with it. Items, faults and readouts are all text in the config. 4. File pass or fail on the tablet for $450 and 60 XP.

A pass lasts 48 hours. A fail can be re-inspected after 30 minutes. Walking 150 m away cancels it.

Finances

Bosses manage the department society account (Config.Finances), in whichever banking resource runs: Renewed-Banking, kartik-banking, okokBanking, fd_banking, tgg-banking, snipe-banking, tgiann-bank, p_banking, qb-banking or esx_addonaccount.

  • Deposit and withdraw.
  • Pay bonuses to members, offline too (up to $10,000).
  • City funding of $300 per completed call goes into the account.
  • Transaction log.

The account name is the job name unless account is set.

Documents

The Documents page keeps the department's paperwork in folders (Config.Documents.folders): procedures, training notes, letters and reports. Anyone can write one; on a filed incident report, Save as a document turns it into one.

Grade 2 and up can share a document with other services (shareJobs: police, ambulance and DOJ by default). They read it with /firedocs, read-only. The department stays in charge of it and can take the sharing back any time.

Public forms

Citizens hand in job applications and complaints at a station: talk to the station chief, or use a public terminal placed in the station setup (see First Setup). They can hand one in every 30 minutes (Config.PublicForms.cooldown).

Grade 2 and up see them on the Public forms page and are told when a new one comes in. Mark each one processed, archive it or reopen it. Who handled it is shown.

Supplier

Order equipment on the Supplier page (Config.Shop): SCBA cylinders, hose packs, cones, spill kits, detectors and more. Pay yourself, or (grade 3 and up) from the department account.

The order arrives as a crate at your station after a few minutes (delay), at the delivery point placed in the station setup or next to the garage point. Whoever on duty pries it open there gets the items. The page shows each order counting down, waiting to be unpacked, and who unpacked it.

Set the catalogue, prices, the grade each item needs and who may pay in Config.Shop.

Holding several jobs

Someone who works another job as well (a paramedic, a mechanic) can keep both. The jobs each character holds are remembered with their grade, and they switch with Switch job at the station chief, off duty (Config.MultiJob).

  • Being dismissed on the Staff page removes the fire job from their list.
  • On Qbox the switch checks that the player still really has the job. On QBCore and ESX, limit which other jobs can be switched to with jobs.

Audit log

Bosses see every hire, promotion, dismissal, certificate, money movement, deleted report, supplier order, shared document and exclusion zone.

Pay

  • Per call: the call's reward split by the share of work each player did (Config.Payments). Under 5% gets nothing.
  • Rescue bonus: $400 to whoever extricates a trapped patient.
  • Escalation: +25% per automatic alarm level.
  • Reports, inspections and investigation pay their own bonuses.

Money goes to the bank account (Config.Payments.account).

Ranks

XP levels you through 9 ranks, 1000 XP each: Recruit, Firefighter, Firefighter II, Senior Firefighter, Engineer, Lieutenant, Captain, Battalion Chief, Fire Chief (Config.Missions.ranks). These are separate from job grades.

On this page