Hotbar
Patient and ambulance vehicle hotbar configuration for 0r-ambulancejob
The resource ships with two configurable hotbar contexts:
patient: actions used while interacting with another player.vehicle: actions used while interacting with a configured ambulance vehicle.
Main config file:
config/hotbar.lua
Type file for editor hints:
modules/types/hotbar.lua
Context Config
Each top-level context supports:
enabledinteractionTypetargetLabeltargetOpenDistancecloseDistancehideAfterUseuseKeybindsopenKeybindtargetDistancedefaultJobsitems
Patient-only extra field:
assistiveDurationMaxMinutesassistiveDevices
Notes:
interactionTypeacceptstargetortextui.defaultJobs = nilfalls back toConfig.ambulanceJobs.targetDistancecontrols server-side validation for patient actions and nearby interaction checks.If both contexts use the same
openKeybind, the nearest valid context is opened.
Item Config
Each hotbar item supports:
idlabelkeybindkeyLabelimagesideenabledjobshandlereventserverEventinitallowWhileDownedtargetDistancesubmenu
Notes:
sideacceptsleftorright.If
keybindis omitted on a top-level item, the client assigns the next free key automatically.submenuitems use the same data shape as a regular item.jobscan override the context-leveldefaultJobslist for a single action.allowWhileDowned = truebypasses the default block for dead / laststand usage.
Action Resolution Order
When an item is used, the client resolves the action in this order:
handleriniteventserverEvent
If none of these are defined, the resource notifies that the item is missing a handler.
Built-in Defaults
Default patient items include:
remove clothing
give crutch
give wheelchair
serum / blood submenu
draw blood
neck brace / arm plaster submenu
open monitor
write prescription
carry patient
bandage treatment
stretcher control submenu
Default vehicle items include:
extract stretcher
load stretcher
toggle rear doors
toggle rear compartment
Assistive Devices
Patient hotbar assistive flows are configured through Config.hotbar.patient.assistiveDevices.
Default device keys:
crutchserumbloodneckbracearm_plasterwheelchairmonitor
Device entries can define object, animation, attachment, and vehicle behavior:
bonemodelclipsetanimDictanimClipanimFlaganimTimeoffsetrotationrotationOrdersyncRotscalestateKeyseat
Notes:
scaleis optional and accepts a number orvector3.Leave
scaleunset when the model does not need matrix scaling.wheelchair.stateKeycontrols the player state bag used for wheelchair tracking.monitor.modelmay be a single model or a fallback list.assistiveDurationMaxMinuteslimits the duration requested by patient-side assistive actions.
Admins can tune the active assistive prop offset and rotation in-game with the configured debug command:
The command is controlled by Config.commands.hotbarAssistiveDebug in config/init.lua and is restricted to group.admin by default.
UI Images
Hotbar item images are UI assets, not inventory item definitions.
Keep configured
imagenames aligned with files inui/build/items.When editing the dev UI source, mirror those assets in
ui/dev/public/itemsbefore rebuilding.
Optional Dependencies
Some shipped default handlers expect optional resources or content:
iak_wheelchairfor wheelchair flows.emspropsandqua_ambulance_intfor ambulance vehicle/interior flows.
If you do not use those resources, disable or replace the related hotbar items in config/hotbar.lua.
Example
Last updated