Job feature pack ​
np_medic is an addon of np_jobs. It registers the medic feature pack and definitions through the documented
host exports. The feature registration callback receives addon metadata; it uses exports.np_jobs to register.
Capabilities ​
| Feature | Permission scope |
|---|---|
medic.firstaid |
Tier 1 professional first aid |
medic.diagnose |
Patient exam, body view and imaging access |
medic.treat |
Tier 1 and 2 treatment; tier 2 requires this feature |
medic.revive |
Tier 3 resuscitation interventions |
medic.stretcher |
Carry, board, stretcher and patient movement actions |
medic.vehicle |
Vehicle stretcher load/unload and medical equipment use |
medic.hoist |
Fixed-attachment helicopter extraction with server-validated patient/aircraft state and safe pickup/landing release points |
medic.surgery |
Tier 4 treatment procedures and surgery flow |
medic.hospital |
Admission and discharge |
medic.prescribe, medic.pharmacy |
Command/export prescription issue, patient consent and payment approval, dispensing, revocation and configured np_needs effect use |
medic.records |
Consent-gated medical record access |
medic.coroner |
Session-scoped body-bag registration, morgue intake and aggregate autopsy; durable custody and entity movement are not implemented |
medic.lab, medic.train, medic.vet |
Registered capability definitions; workflows remain planned |
medic.dispatch.receive |
Receive alerts on the medical dispatch channel |
medic.deploy |
Field camp: place and pack field equipment and tents (/feld), deploy tent templates, change a tent's label. Registered by the addon np_medic_field |
medic.fieldplan |
Field camp planning: design the faction's tent labels and templates. Registered by the addon np_medic_field |
medic.deploy and medic.fieldplan belong to the medic pack but are not registered by np_medic itself: the addon
np_medic_field registers them once np_medic has registered the pack, and they only exist while it
runs (np_medic_field → Installation). On servers without np_jobs, add them
to config/fallback_jobs.lua like the other features.
Feature grants are independent. Surgery does not imply treatment, revive, diagnosis or transport. Intervention tier checks remain an additional limit, and the server checks permissions when an action starts.
Example compositions ​
ems = { faction = 'ems', features = {
'medic.firstaid', 'medic.diagnose', 'medic.treat', 'medic.revive', 'medic.stretcher',
'medic.vehicle', 'medic.hospital', 'medic.surgery', 'medic.dispatch.receive', 'medic.records',
} }
firefighter = { faction = 'fire', features = {
'medic.firstaid', 'medic.diagnose', 'medic.stretcher', 'medic.dispatch.receive', 'fire.rescue_tools',
} }
ranger = { faction = 'rangers', features = { 'medic.firstaid', 'medic.treat', 'medic.hoist', 'police.cuff' } }
lifeguard = { faction = 'lifeguards', features = { 'medic.firstaid', 'medic.revive', 'medic.stretcher' } }
prisonDoctor = { faction = 'prison', features = { 'medic.diagnose', 'medic.treat', 'medic.hospital' } }
np_jobs contract ​
The addon needs registerFeaturePack, table-form registerFeature, registerLoadoutProvider,
registerVehicleProvider, registerItemGate, hasFeature, getFeatureConfig, getPlayersWithFeature and
isOnDuty. Feature grants, grade/rank checks and duty state are resolved by the host. The host should invoke
provider hooks with each job's resolved feature configuration and remove registrations when the addon detaches.
np_jobs now provides the runtime feature resolver and server exports used by this pack contract. A feature becomes
available only after np_medic registers it with an attached host and a job definition grants it; see np_jobs API & exports.