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!")
end
Server
exports.pickle_firefighterjob:StartFire(coords, (opt) data)
This is used to start a fire, data will allow you to use custom fire data.
local coords = vector3(0.0, 0.0, 0.0)
local data = {
flame = {
dict = "core",
particle = "fire_object",
stack = 3,
height = 0.4,
scale = 3.0,
fireRadius = 1.25,
},
smoke = {
dict = "des_gas_station",
particle = "ent_ray_paleto_gas_plume_L",
stack = 3,
height = 6.0,
scale = 1.0,
}
}
local index = exports.pickle_firefighterjob:StartFire(coords, data)
print("Fire Index:", index)
exports.pickle_firefighterjob:RemoveFire(index)
This is used to remove a fire using the index.
local index = 10
exports.pickle_firefighterjob:RemoveFire(index)
exports.pickle_firefighterjob:StartScenario(index)
This is used to start a scenario using the scenario index.
local index = 1
exports.pickle_firefighterjob:StartScenario(index)
exports.pickle_firefighterjob:StopScenario()
This is used to stop the active fire scenario.
exports.pickle_firefighterjob:StopScenario()
Last updated