Cuxial Medical handles everything that happens from the moment a player takes damage until they are back on their feet: injuries, the downed state, EMS treatment and the hospital. Most of it can be tuned in game from an admin panel, without restarting the server.
What it does
- Death in phases. Each phase has its own duration, respawn rule and hospital fee. The first one can be a last stand where the player crawls.
- Death screen with the countdown, the EMS on duty, a key to call for help and a hold-to-respawn key.
- Injuries by body zone. Nine zones, four wound types and four levels, with limp, aim shake, blocked sprint and jump, blackouts and bleeding.
- EMS items: defibrillator, medkit, sedative, one treatment item per wound type and a medical bag that can be placed on the ground.
- Hospitals with a map blip, beds, a respawn point and an optional reception NPC to check in.
- Stretcher that medics carry and load into an ambulance.
- Finisher with a melee weapon on a downed player.
- Optional extras: knockout by punches, painkillers and a self-use bandage.
- Distress calls to the EMS on duty, with a blip, and to the police dispatch when Cuxial Police is running.
- Admin panel (
/medadmin) to edit phases, hospitals, beds, items and the rest of the settings live. - Logs to a Discord webhook and a medical history per character in the database.
- State kept across reconnects. A player who leaves while downed comes back downed.
A full walkthrough of each part is in the Features guide.
Requirements
| Resource | Required | Used for |
|---|---|---|
| OneSync | Yes | State bags, server-side distance checks |
ox_lib | Yes | Commands, key bindings, notifications, progress bars, locales |
oxmysql | Yes | Settings, medical history and audit |
cuxial_bridge | Yes | Connects to your framework, inventory and target |
An inventory supported by cuxial_bridge | Yes | Medical items (ox_inventory or qb-inventory) |
A target supported by cuxial_bridge | Yes | Beds, stretcher, medical bag and finisher (sleepless_interact, ox_target or qb-target) |
cuxial_interactions | No | Reception NPC with the check-in dialog |
cuxial_police | No | Sends distress calls to the police dispatch |
Cuxial Medical provides qb-ambulancejob and manages death by itself. Do not run another death or ambulance script alongside it.
cuxial_bridge supports QBox, QBCore and ESX. On ESX the script requires player metadata (getMeta / setMeta) and the duty flag of the job: they restore the downed state after a reconnect and identify the EMS on duty. Hunger and thirst are reset through the hunger and thirst metadata.
Pages
shared/config.lua and the hospital list.Commands & permissionsStaff and EMS commands, keys and who can use what.Exports & eventsRead the medical state, revive, heal and injure from your own resources.TroubleshootingCommon problems and how to fix them.