# Exports

> Fire Job server exports with argument types, return values, incident IDs, error handling, and complete oil spill examples.

**Optional developer integration.** You do not need exports to install Fire Job, configure a station, or use the supplied gameplay. Start with [Installation](../setup/installation) for those tasks.

Choose the feature below for its signatures, parameters, examples and return values. Client and server exports run on their stated side; they do not replace gameplay authorization.

Call these exports from a **server script** in your own resource, with `sky_firejob` started. They create or remove an incident when called. Automatic oil leaks after collisions or from wear need Sky Mechanic or another resource that detects the condition and calls Firejob.

The return formats and IDs differ between fire and oil exports:

<table>
<thead>
  <tr>
    <th>
      Operation
    </th>
    
    <th>
      Return value on success
    </th>
    
    <th>
      ID to keep
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        CreateFire
      </code>
    </td>
    
    <td>
      One table: <code>
        { success = true, fireId = ..., type = ..., label = ... }
      </code>
    </td>
    
    <td>
      <code>
        result.fireId
      </code>
      
      , a numeric fire ID
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        CreateVehicleFire
      </code>
    </td>
    
    <td>
      One table: <code>
        { success = true, fireId = ... }
      </code>
    </td>
    
    <td>
      Keep the <strong>
        vehicle network ID you supplied
      </strong>
      
       for <code>
        RemoveVehicleFire
      </code>
      
      ; <code>
        result.fireId
      </code>
      
       identifies the fire
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        CreateOilSpill
      </code>
    </td>
    
    <td>
      <strong>
        Two values:
      </strong>
      
       <code>
        true, spill
      </code>
    </td>
    
    <td>
      <code>
        spill.id
      </code>
      
      , a string such as <code>
        "17"
      </code>
      
      , for <code>
        RemoveOilSpill
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GetOilSpills
      </code>
    </td>
    
    <td>
      An array of spill tables
    </td>
    
    <td>
      Each entry's <code>
        spill.id
      </code>
      
      ; the array index is not the spill ID
    </td>
  </tr>
</tbody>
</table>

`creator`, where accepted, is a player's current server ID (`source`). Use `0` or omit it for server-created incidents. It is separate from the vehicle network ID, fire ID, and oil spill ID.

## Shared APIs

<table>
<thead>
  <tr>
    <th>
      Resource
    </th>
    
    <th>
      Use it for
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a href="/docs/base/jobs-base/client-exports">
        Jobs Base client exports
      </a>
    </td>
    
    <td>
      Documents, radial actions, shared player interactions and tablet panels
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="/docs/base/jobs-base/server-exports">
        Jobs Base server exports
      </a>
    </td>
    
    <td>
      Duty, employees, service features, dispatch, storage and society money
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="/docs/base/api/exports">
        Base exports
      </a>
    </td>
    
    <td>
      Currency, inventory bridges, phone/tablet providers and the Sky library
    </td>
  </tr>
</tbody>
</table>

The export belongs to the resource named in its example. A shared export still uses `sky_jobs_base` or `sky_base`, even when called from a Police, Ambulance, Mechanic, Fire, Crime, DOJ or Creator integration.

## Server Exports

<span id="createfirepayload-creator">



</span>



- [CreateFire(payload, creator)](/docs/jobs/firejob/reference/exports/server-createfire)

<span id="server-exports-1">



</span>

 <span id="createvehiclefirepayload-creator-options">



</span>



- [CreateVehicleFire(payload, creator, options)](/docs/jobs/firejob/reference/exports/server-createvehiclefire)

<span id="server-exports-2">



</span>

 <span id="removevehiclefirenetid-reason">



</span>



- [RemoveVehicleFire(netId, reason)](/docs/jobs/firejob/reference/exports/server-removevehiclefire)

<span id="server-exports-3">



</span>

 <span id="createoilspillpayload-creator-options">



</span>

 <span id="create-keep-the-id-and-remove-the-spill-later">



</span>

 <span id="source-grouping-and-limits">



</span>

 <span id="lifetime-and-saved-ids">



</span>



- [CreateOilSpill(payload, creator, options)](/docs/jobs/firejob/reference/exports/server-createoilspill)

<span id="server-exports-4">



</span>

 <span id="removeoilspillspillid-reason">



</span>



- [RemoveOilSpill(spillId, reason)](/docs/jobs/firejob/reference/exports/server-removeoilspill)

<span id="server-exports-5">



</span>

 <span id="getoilspills">



</span>



- [GetOilSpills()](/docs/jobs/firejob/reference/exports/server-getoilspills)

## Related shared integrations

The firejob also depends heavily on `sky_jobs_base` and inherits its shared systems for:

- Job registration
- Duty handling
- Storage
- Garages
- Dispatch
- Boss permissions

<callout color="info" icon="i-lucide-info">

See the [Sky Jobs Base Server Exports](/docs/base/jobs-base/server-exports) page for shared integrations like dispatch creation, external garage registration, and storage helpers.

</callout>
