Exports
This is the list of exports in this resource.
Client
This is used for fire targeting, which allows you to use external scripts to attack fires.
exports.pickle_firefighterjob:EnableFireTarget(damagePerTick, attackFunction)
local damagePerTick = 0.1 -- This is how much to damage the fire while attacking.
local range = 10.0 -- Effective range for putting out fires.
exports.pickle_firefighterjob:EnableFireTarget(damagePerTick, function(index, dist)
return dist < range and IsDisabledControlPressed(1, 24)
end)exports.pickle_firefighterjob:DisableFireTarget()
This is used for when you want to disable fire targeting.
exports.pickle_firefighterjob:DisableFireTarget()exports.pickle_firefighterjob:IsFireTargetActive()
This is used for when you want to check if fire targeting is active.
if (exports.pickle_firefighterjob:IsFireTargetActive()) then
print("Target is active!")
endServer
exports.pickle_firefighterjob:StartFire(coords, (opt) data)
This is used to start a fire, data will allow you to use custom fire data.
exports.pickle_firefighterjob:RemoveFire(index)
This is used to remove a fire using the index.
exports.pickle_firefighterjob:StartScenario(index)
This is used to start a scenario using the scenario index.
exports.pickle_firefighterjob:StopScenario()
This is used to stop the active fire scenario.
Last updated