Browse docs

Server: RemoveVehicleFire(netId, reason)

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

All exports

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:

OperationReturn value on successID to keep
CreateFireOne table: { success = true, fireId = ..., type = ..., label = ... }result.fireId, a numeric fire ID
CreateVehicleFireOne table: { success = true, fireId = ... }Keep the vehicle network ID you supplied for RemoveVehicleFire; result.fireId identifies the fire
CreateOilSpillTwo values: true, spillspill.id, a string such as "17", for RemoveOilSpill
GetOilSpillsAn array of spill tablesEach entry's spill.id; the array index is not the spill ID

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.

Server Exports

RemoveVehicleFire(netId, reason)

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

ArgumentTypeRequired / defaultMeaning
netIdnumberRequiredThe same vehicle network ID supplied to CreateVehicleFire, not its returned fireId
reasonstring"external_repair"Reason recorded for removal

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.
-- 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