Browse docs

Server: RemoveVehicleFire(netId, reason)

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

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

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