# Configuration

> Understand the Job Configurator, firejob feature toggles, static settings, and safe configuration workflow.

## Configuration sources

Sky Fire Job uses two configuration layers:

<table>
<thead>
  <tr>
    <th>
      Layer
    </th>
    
    <th>
      Purpose
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        /jobconfig
      </code>
    </td>
    
    <td>
      Job-specific and frequently changed settings stored through Sky Jobs Base
    </td>
  </tr>
  
  <tr>
    <td>
      Open files in <code>
        sky_firejob/config
      </code>
    </td>
    
    <td>
      Defaults, fallback jobs, advanced systems, locales, images, and styling
    </td>
  </tr>
</tbody>
</table>

With the supplied `Config.UseJobConfigurator = true`, managed settings use the packaged defaults and saved Job Configurator values. Change them in `/jobconfig`; editing their plaintext defaults alone does not change the live configuration. Startup settings such as `Config.AutoExecuteQuery`, the configurator switch itself and command permissions remain file settings.

## Recommended workflow

1. Open `/jobconfig` as an administrator and select **Fire Jobs**.
2. Configure firefighter jobs, shops, vehicles, permissions, station flow, and scenario settings.
3. Save the configuration and test it without restarting the resource.
4. Use the open configuration files only for settings that are not exposed in the configurator.
5. Keep a backup of customized configuration files before every resource update.

For a first installation, complete [Installation](./installation) before changing gameplay settings. Create the station through [Station Setup](./station-setup), then run the first hose test. Change one feature at a time and check its result before enabling automatic incidents.

### Importing an existing file configuration

`/jobconfigimport sky_firejob` imports the supported local configuration into the shared configurator. Back up the database and review the import before using it on an already configured server; importing is not required after every update. For normal edits, open the existing entry, change it and save.

### Using configuration files instead

Set `Config.UseJobConfigurator = false` only when you deliberately want the file-based workflow, then restart the resource. The legacy fire creator is available in that mode. Keep your saved configurator data: switching workflows is not a reason to delete SQL tables.

## Main feature areas

`config/config.lua` contains the main fallback setup for:

- Fire station blip and radial access
- Rescue cushion
- Hose behavior, foam refill, pumps, hydrants, and supported vehicles
- Firefighter job definitions, props, shops, and vehicles
- Oil spill cleanup
- Vehicle fires and standalone accident ignition
- Lighter ignition behavior
- Prop ignition
- Vehicle rescue and player entrapment
- Trapped patient rescue
- Scenario creator dispatch and random trigger behavior
- Tree incident gameplay
- Fire system decals, protective gear, and NPC reactions

## Open configuration files

<table>
<thead>
  <tr>
    <th>
      File
    </th>
    
    <th>
      Use
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        config/config.lua
      </code>
    </td>
    
    <td>
      Main firejob settings, fallback jobs, and major feature toggles
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        config/init.lua
      </code>
    </td>
    
    <td>
      Loads the firejob configuration entrypoint
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        config/editor/peds.lua
      </code>
    </td>
    
    <td>
      Firefighter wardrobe or character-related creator data
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        config/editor/vehicles.lua
      </code>
    </td>
    
    <td>
      Garage and configured fire vehicle editor data
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        config/img/*
      </code>
    </td>
    
    <td>
      Bundled Firejob UI background and artwork assets
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        config/locales/*.lua
      </code>
    </td>
    
    <td>
      Translations and interface text
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        config/style.css
      </code>
    </td>
    
    <td>
      Fallback NUI theme variables and styling
    </td>
  </tr>
</tbody>
</table>

## Settings that need extra care

### Firetruck HUD key bindings

Server defaults are under **/jobconfig > Fire Jobs > General > Keybinds**:

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Plaintext equivalent
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Toggle firetruck HUD
    </td>
    
    <td>
      Empty: no default key; <code>
        /firetruckhud
      </code>
      
       remains available
    </td>
    
    <td>
      <code>
        Config.Keybinds.firetruckHudToggleKey
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Hold firetruck HUD mouse interaction
    </td>
    
    <td>
      <code>
        LCONTROL
      </code>
      
       (Left Ctrl)
    </td>
    
    <td>
      <code>
        Config.Keybinds.firetruckHudCursorKey
      </code>
    </td>
  </tr>
</tbody>
</table>

Saved Job Configurator values take priority when `Config.UseJobConfigurator` is enabled. Players change their own bindings under **Settings > Key Bindings > FiveM**; changing the server defaults does not overwrite bindings they have already saved.

HUD position and size are personal settings changed through `/firetruckhudmove`. See [Firetruck HUD commands](../reference/commands#firetruck-hud-commands) for the complete controls.

### Hose and supply settings

Review `Config.Hose` carefully when adjusting hose length, hydrant distance, pump support, or fire vehicle tank sizes. Mismatched supply values can make realistic suppression impossible or too easy.

### Vehicle fires

`Config.VehicleFires` controls manual ignition, external creation, explosion timing, and standalone accident detection. If `sky_mechanicjob` is running, the fallback accident mode should be reviewed so both resources do not try to own the same crash logic.

### Protective gear

`Config.FireSystem.protectiveGear` validates required clothing components and optional air bottle handling. Adjusting component IDs without matching your actual uniforms will cause players to lose intended protection.

### Oil spill cleanup

`Config.OilSpills.cleanup` controls required duty checks, absorbent and broom items, and item consumption. The cleanup state is server-authoritative and should stay aligned with your inventory item names.

### Scenario creator

`Config.FireScenarioCreator` controls random triggers and dispatch targeting. Review the required on-duty job list before enabling automatic scenario starts on production servers.

### Job Configurator fire jobs

Firefighter jobs created only through `/jobconfig` are still included in the shared job systems. They receive station storage, wardrobe, garage, billing, and tablet support through Sky Jobs Base.

After adding or changing a firefighter job, save the Job Configurator entry and ensure the player has the correct job and duty state before checking access.

## Related pages

- [Station Setup](./station-setup)
- [Protective Gear and Air](../features/protective-gear-and-air)
- [Scenario Creator and Hub](../features/scenario-creator-and-hub)
- [Permissions](./permissions)
