Skip to content

Configuration ​

Core and runtime ​

config/core.lua selects optional bridges. config/medic/ contains the medical simulation, injuries, treatment catalogue, transport, hospital, notruf and respawn settings. Keep local changes in config rather than editing the resource's feature definitions.

Fallback job map ​

When np_jobs is not installed, the server can assign capabilities through config/fallback_jobs.lua:

lua
return {
  rescue = {
    ['medic.firstaid'] = { minGrade = 0, duty = 'required' },
    ['medic.diagnose'] = { minGrade = 1, duty = 'required' },
    ['medic.treat'] = { minGrade = 1, duty = 'required' },
  },
}

The sample job key is supplied by the server owner. The fallback is ignored when np_jobs is installed.

Feature configuration ​

In np_jobs, attach a capability to a job and provide its per-job config there. Ranks and feature permission nodes are resolved through np_jobs / np_faction. Nodes default to feature.<id>, for example feature.medic.treat.

See the feature reference for the action-level permissions and current runtime coverage.

Hospital and billing ​

Hospital buildings, rooms, beds and points are stored locally by np_medic; bed occupancy is saved with the layout. np_payments is used for respawn, NPC hospital and insurance checkout when available; framework billing handles medical bills when it is absent. Configure insurance plans and eligible item-loss tags in config/medic/insurance.lua. Insurance is prepaid for 30 days and has no automatic renewal. Unknown payment outcomes require manual reconciliation.