# Server: RemoveVehicleFire(netId, reason)

> Reference for Server: RemoveVehicleFire(netId, reason) in firejob.

[All exports](/docs/jobs/firejob/reference/exports)

**Optional developer integration.** Call this export from a **server script** in your own resource after `sky_firejob` has started. For normal installation and gameplay, use [Installation](/docs/jobs/firejob/setup/installation).

## Server Exports

### `RemoveVehicleFire(netId, reason)`

Removes the active Firejob fire associated with a vehicle and clears its Firejob burning state.

<table>
<thead>
  <tr>
    <th>
      Argument
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Required / default
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        netId
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Required
    </td>
    
    <td>
      The same <strong>
        vehicle network ID
      </strong>
      
       supplied to <code>
        CreateVehicleFire
      </code>
      
      , not its returned <code>
        fireId
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        reason
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      <code>
        "external_repair"
      </code>
    </td>
    
    <td>
      Reason recorded for removal
    </td>
  </tr>
</tbody>
</table>

The export returns **one table**:

- `{ success = true, removed = true, fireId = <number> }`: an active vehicle fire was removed.
- `{ success = true, removed = false }`: no active Firejob vehicle fire was registered for that ID; its burning state is still cleared.
- `{ success = false, error = "invalid_vehicle" }`: the supplied ID is not a positive network ID.

```lua
-- Use the real vehicle network ID stored by your incident/repair workflow.
local vehicle_net_id = 123
local result = exports["sky_firejob"]:RemoveVehicleFire(vehicle_net_id, "external_repair")

if not result.success then
    print(("Could not remove vehicle fire: %s"):format(result.error))
elseif result.removed then
    print(("Removed fire %s"):format(result.fireId))
else
    print("No active Firejob vehicle fire remained for this vehicle.")
end
```
