Browse docs
Exports
Server exports provided by the Sky Fire Job resource.
This page documents supported public integration calls and usage examples. It does not expose or reproduce the resource's internal implementation.
Server Exports
CreateVehicleFire(payload, creator, options)
- Purpose: Creates a vehicle fire through the public firejob API.
- Arguments:
payload(table) - fire creation data. Should includenetIdand/orcoords, and may includeplate,source,initialStage,smokeDensity,explosionDelaySeconds, and vehicle state values.creator(number) - optional player source for auditing or validation context.options(table) - optional creation flags such asreason,manual,accident, orscenario.
- Returns:
tablewithsuccessand additional fields such asfireIdorerror.
local result = exports["sky_firejob"]:CreateVehicleFire({
netId = vehicleNetId,
plate = plate,
coords = { x = coords.x, y = coords.y, z = coords.z },
source = "my_resource"
}, source, { reason = "external" })
RemoveVehicleFire(netId, reason)
- Purpose: Removes the active fire state from a vehicle.
- Arguments:
netId(number) - network ID of the burning vehicle.reason(string) - optional audit reason.
- Returns:
tablewithsuccessand removal details.
exports["sky_firejob"]:RemoveVehicleFire(vehicleNetId, "external_repair")
CreateOilSpill(payload, creator, options)
- Purpose: Creates a persistent oil spill.
- Arguments:
payload(table) - spill data includingcoords, and optionallyradius,intensity,source,sourcePart,sourceVehicleNetId, andsourcePlate.creator(number) - optional player source tied to the creation.options(table) - optional flags such assourceKey,ignoreSourceCooldown,ignoreSourceMinDistance, orignoreVehicleLimit.
- Returns:
success, spillOrError.
local ok, spill = exports["sky_firejob"]:CreateOilSpill({
coords = { x = coords.x, y = coords.y, z = coords.z },
source = "scripted_scene",
radius = 1.5,
intensity = 0.9
}, source)
RemoveOilSpill(spillId, reason)
- Purpose: Removes an existing oil spill.
- Arguments:
spillId(string|number) - spill identifier.reason(string) - optional audit reason.
- Returns:
boolean
exports["sky_firejob"]:RemoveOilSpill(spillId, "scene_reset")
GetOilSpills()
- Purpose: Returns every currently active oil spill known to the server.
- Returns:
table[]
local spills = exports["sky_firejob"]: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
See the Sky Jobs Base Server Exports page for shared integrations like dispatch creation, external garage registration, and storage helpers.
Support
Need help? Our support team is always ready to assist.
Join Discord