Skip to content

np_medic_field v0.1.0 ​

Field hospital camps for FiveM. np_medic_field is an addon of np_medic: it attaches to np_medic through its addon API (host API 1) and takes its permissions from it.

  • Deployable tents, open or with a lockable double door (Tents & doors).
  • Tent labels designed by factions: title, subtitle, colour band and icon from fixed lists, drawn on the tent's sign at runtime (Labels).
  • Faction tent templates: furnish a tent once, save it, and later set it up again with one placement (Templates).
  • Field equipment: field beds, curtains, privacy screens, triage tarps, the field OR set, oxygen trolley, IV pole, supply cases and public AED posts (Field equipment).
  • Feldlager tablet in the Nimbus UI look: templates with a floor plan, the label designer, and the tents nearby.

The door tent, assembled from the built models with both leaves open

How it works ​

  • /feld <part> places a part with np_prophandler's placement gizmo. The client sends only what to place and where. The server checks permission, distance, limits, stacking and rate, takes the model from the config and registers the prop for everyone.
  • Any medic with medic.deploy can pack a part up again ("Abbauen"). Packing a tent packs everything inside it, its door leaves and its door.
  • Permissions are two np_jobs features, medic.deploy and medic.fieldplan. The addon registers them in np_medic's medic pack and asks exports.np_medic:can(src, feature); without np_jobs, np_medic's fallback jobs answer (Installation).
  • Labels and templates belong to a faction: np_jobs' active job (label from np_faction), otherwise the framework job.

Requirements ​

  • np_prophandler is needed to place anything.
  • np_medic is the host. It is not a hard dependency, so restarting np_medic keeps the camps standing, but without it nothing can be placed.
  • Everything else is optional: np_doors (tent doors with access rules), np_jobs, np_faction, oxmysql (for the oxmysql store), a framework (es_extended, qbx_core, qb-core) and an inventory (np_inventory, ox_inventory, qb-inventory). See Installation.

Player messages, part names and the tablet are in German (config/field.lua → texts).

Not tested in game

np_medic_field is covered by busted tests with stubbed natives and by offline checks of the 3D assets only. It has not been run on a live server. Above all, it is not yet known whether GTA's door system swings the custom door leaves; the planned fallback is a scripted swing. Test it on a staging server first.

Next: Installation, then Configuration.