Skip to content

Configuration

Main configuration map for 0r-ambulancejob

All primary configuration lives in config/*.lua.

Main Config#

File: config/init.lua

Important settings:

  • Config.locale
  • Config.ambulanceJobs
  • Config.facilityJobs
  • Config.commands
  • Config.inventoryImagesFolder
  • Config.useCustomInventory
  • Config.logger

Default admin / EMS command entries include:

  • emsAlert
  • adminRevive
  • adminKill
  • reviveNearest
  • adminHealthTest
  • hotbarAssistiveDebug

Config.ambulanceJobs controls the default jobs allowed to access ambulance features:

lua
Config.ambulanceJobs = {
    "ambulance",
    "ems",
}

Medical Config#

File: config/medical.lua

This file controls:

  • laststand and deathscreen behavior
  • death and laststand timers
  • EMS call and respawn keybinds
  • hospital respawn inventory wipe behavior
  • dispatch blip/zone behavior
  • revive, death, crawl, and get-up animations
  • healing item behavior
  • regional injury thresholds
  • weapon and bone region mapping
  • bleeding, blackout, stumble, and other injury effects

The regional injury system tracks these canonical regions:

  • HEAD
  • TORSO
  • LEFT_ARM
  • RIGHT_ARM
  • LEFT_LEG
  • RIGHT_LEG

Each region stores damage between 0-100. Severity is derived from the thresholds in config.medical.injuries.severityThresholds.

Facility Config#

File: config/facility.lua

This file controls the hospital facility panel and runtime systems:

  • facility panel command, item, keybind, and allowed groups
  • facility map blips
  • garages and helicopter pads
  • NPC doctors
  • hospital beds
  • market and pharmacy points
  • usable medical bag inventory
  • prescriptions
  • facility billing, invoice presets, and paid invoice deposits
  • shared and personal stashes
  • blood tests
  • MR / X-Ray scans
  • doctor-operated treatment panel
  • target/textui runtime interaction behavior

The default market includes medbag. The usable med bag is configured at runtime.medBag; by default it opens a free shop-style inventory populated from runtime.market.items, excluding the med bag item itself.

Default facility panel access:

lua
panel = {
    active = true,
    allowedGroups = { "admin", "god" },
    openWithCommand = {
        active = true,
        command = "facilitypanel",
    },
    openWithItem = {
        active = true,
        itemName = "facility_panel",
    },
    openWithKey = {
        active = true,
        key = "F6",
    },
}

Ambulance Vehicle Config#

File: config/ambulance_vehicle.lua

This file controls:

  • ambulance vehicle metadata and state bag keys
  • target/textui interaction mode
  • interior coordinates and routing bucket base
  • vehicle exit behavior
  • stretcher model, carrying offsets, and patient placement
  • body bag offsets
  • supported vehicle models and rear door indices

The default supported model is ambulance.

Hotbar Config#

File: config/hotbar.lua

Hotbar-specific configuration is documented separately:

Hotbar

Inventory Integration#

The resource supports ox_inventory, qb-inventory, QB/QBX inventory helpers, and ESX inventory flows natively.

If you use a custom inventory, set:

lua
Config.useCustomInventory = true

Then integrate the inventory abstraction in modules/inventory/* for your inventory resource.