Skip to content

Configuration ​

Defaults live in shared/config.lua. Adjust caps to match expected incident density and server performance.

Setting Default Purpose
TickMs 2000 Fire simulation update interval
CellSize 3 m Distance between simulation cells
MaxIncidents 64 Active incident cap
MaxCellsPerIncident 240 Cell cap per incident
MaxScriptFires 24 Maximum local visual fire handles
MaxActionsPerMinute 120 Per-player action throttle
Hose.startingTankLitres 2500 Initial water in an approved engine tank

Fuel classes define ignition temperature, fuel load, burn rate, spread multiplier, preferred agent, and water danger. Register custom classes through RegisterFuelClass.

Feature schemas and defaults are declared in shared/features.lua and attached to np_jobs. Per-job values such as hose reach, flow, vehicle models, tool items, and SCBA duration belong in the job definition. The default engine model list contains firetruk; add custom apparatus models to the fire.hose.vehicleModels config.

Hydrants, stations, and inspection sites are registered at runtime by their owning resources. Their registries are currently in memory and must be registered again after restart.