All products

np_medic_field

Field hospital camps as an addon of np_medic: deployable tents, open or with a lockable double door, tent labels designed by the faction, and tent templates, so a furnished tent goes up again with a single placement. With field beds, curtains, triage tarps, a field OR set, oxygen, supply cases and AED posts.

v0.1.0Addon of np_medicESX · qbx · qbNot tested in game yet
Price TBANot tested in game yet: covered by unit tests and offline asset checks
InstallationExports and events
Addon of
np_medic (permissions, notifications); camps stay standing while it restarts
Placement
np_prophandler (required to place anything)
Permissions
np_jobs features medic.deploy and medic.fieldplan, or np_medic's fallback jobs
Doors
np_doors with faction-rank access, otherwise np_prophandler doors
Storage
Resource KVP by default, oxmysql optional
Frameworks
ESX, qbx, qb · np_inventory, ox_inventory, qb-inventory
The door tent with both leaves open under the FIELD HOSPITAL sign (3D render of the shipped model)
The door tent with both leaves open under the FIELD HOSPITAL sign (3D render of the shipped model)

3D renders of the shipped models, concept renders of labelled tents and the tablet as a dev fixture in the browser. No in-game screenshots yet.

A field hospital in a few placements

Clients only say what to place and where. The server checks permission, distance, limits, stacking and rate, owns every part and builds templates itself.

Tents that own their contents

  • Place an open tent or a door tent with /feld zelt or /feld zelt_tuer and np_prophandler's gizmo.
  • Parts placed inside belong to the tent. Packing it up (“Abbauen”) packs everything inside, the door leaves and the door.
  • Any medic can pack a part up again; packing a single part inside leaves the tent standing.

Lockable double doors

  • The door tent's two leaves are real door props with their origin on the hinge axis.
  • With np_doors: faction access from rank N, keys, lockdown and the manager.
  • Without it, np_prophandler doors with the same faction job and minimum rank.

Faction-designed labels

  • Title, subtitle, colour band and icon, chosen from fixed lists and never uploaded.
  • Checked on the server: characters, length (18 / 44) and a word filter. At most 24 labels per faction.
  • One shared DUI atlas draws them on the sign at runtime, so there is no model per label.

Tent templates

  • Furnish a tent once and save it as a faction template (medic.fieldplan), up to 24 parts.
  • Later, place only the tent. The server checks every part, computes its pose and builds the tent up part by part.
  • Same distance and limit checks as single parts, plus a deploy cooldown; packing the tent stops the build.

Field equipment

  • Field beds, ward curtains, privacy screens, triage tarps T1 to T4 and a triage board.
  • The field OR set: table, lamp, instrument tray and anaesthesia cart.
  • Oxygen trolley, IV pole and four supply cases: trauma, airway, burns and splints.

AED posts

  • Fixed sites from the config and deployable posts.
  • Each post holds one AED that anyone can take and return; the server counts it.
  • A post that is not refilled restocks after a configurable time.

Feldlager tablet

  • A Nimbus UI tablet: /feld opens the faction's templates with their floor plan.
  • The label designer, with a live preview of the sign.
  • Tents nearby: relabel a standing tent or save it as a template.

Server authority

  • Clients only say what to place and where; every client event is validated and rate limited.
  • Limits per player, per part and per server, slope and stacking checks.
  • Parts disappear on disconnect and when a player loses medic.deploy.

Optional everything else

  • np_jobs and np_faction for features and factions, np_doors for doors, oxmysql for template storage.
  • All detected at runtime; each one missing has a documented fallback.
  • Camps stay standing while np_medic restarts.

Set it up

Compatibility

np_medic is the host and np_prophandler places the parts. Everything else is optional and detected at runtime.

AreaSupportedWithout it
Hostnp_medic (np_addon 'np_medic')Nothing can be placed; parts already standing stay
Placementnp_prophandlerNothing can be placed; parts register again when it is ready
Permissionsnp_jobs features, factions from np_factionnp_medic's fallback jobs and the framework job
Doorsnp_doors: faction job from rank N, keys, lockdownnp_prophandler doors with the same job and rank
Template storageResource KVP (default) or oxmysqlFalls back to KVP with a warning
Frameworkes_extended, qbx_core, qb-core 
Inventorynp_inventory, ox_inventory, qb-inventory (the AED item) 
LabelsDUI atlas drawn on the baked signIf the DUI fails, the baked “FIELD HOSPITAL” sign stays

Installation

Start it after np_prophandler and np_medic. There is no build step.

  1. Put the resource in resources/ as np_medic_field:
    ensure np_prophandler
    ensure np_medic
    ensure np_medic_field   # optional: np_doors, np_jobs, np_faction, oxmysql
  2. In np_jobs, give jobs medic.deploy (place and pack parts, deploy templates, relabel tents) and leadership medic.fieldplan (design labels and templates). Without np_jobs, add both to np_medic's config/fallback_jobs.lua.
  3. Check config/field.lua (parts, tents, limits, texts, fixed AED sites), config/labels.lua (built-in labels, accents, icons, word filter) and config/templates.lua (limits, build pace, storage). The texts ship in German.
  4. For Config.Templates.store = "oxmysql", import sql/install.sql. The default store, resource KVP, needs no database.
  5. In game: /feld opens the tablet, /feld <part> places a part (zelt, zelt_tuer, bett, op_lampe, aed and more).
  6. Check on a live server first: it has not been tested in game, above all whether GTA's door system swings the custom door leaves.

For your own scripts

Server exports and local server events. Client events are internal and validated.

Export (server)Returns
GetFieldEquipment()Every part and AED site: id, key, model, owner, parent, coords, heading, AED, label, door
GetTents()Tents with their pose and label (title, subtitle, accent, icon)
RemoveFieldItem(id, reason?)Removes a part, a tent with everything inside; true if it existed
Event (server, local)Arguments
np_medic_field:placedid, record
np_medic_field:removedid, record, reason (packed, dropped, off_duty, stopped, export)
np_medic_field:builttentId, templateId once a template has finished building

Questions

Is it tested in game?

Not yet. The server decisions and pure modules are covered by busted with stubbed natives, and the config, streamed assets, manifest and Blender sources are checked against each other offline. What needs a live server, above all whether GTA's door system swings the custom door leaves, is listed in the resource's docs/PROP.md.

Why is this not part of np_medic any more?

The field equipment (/feld, tents, AED posts, medic.deploy) moved out of np_medic into this addon, which also adds door tents, labels and templates. np_medic keeps the health simulation and the medical job features and is the host this addon attaches to.

Can players upload their own sign images?

No. Labels are text plus a colour band and an icon from fixed lists, validated on the server (uppercase, at most 18 and 44 characters, an allowed character set and a word filter), so nothing user-made is ever streamed.

Do I need np_doors?

No. Without it the door tent uses np_prophandler doors with the same faction job and minimum rank. With it, tent doors work like every other np_doors door: keys, lockdown and the manager.

Works well with

Furnish it once, set it up anywhere.

np_medic_field attaches to np_medic. Installation, configuration, tents, labels and templates are in the docs.

np_medic_field docs