Pickle Mods
  • Pickle Mods
  • Paid Resources
    • Casinos
      • Installation
      • Tutorial
    • In-Game Store
      • Installation
      • Exports
      • Tebex & Coin Products
      • PTS Commands
    • Rewards System
      • Installation
      • Exports
      • Snippets
    • Bail & Bounty
      • Installation
      • Exports
    • Firefighter Job
      • Installation
      • Commands
      • Exports
      • Snippets
    • Advanced Crafting
      • Installation
    • Electrician Job
      • Installation
    • Construction Job
      • Installation
    • Hunting
      • Installation
    • Documents
      • Installation
      • Exports & Examples
    • Dealership
      • Installation
    • Police Tools
      • Installation
  • Free Resources
    • Pickle Airport
      • Installation
      • Hotfixes
    • Pickle Consumables
      • Installation
      • Hotfixes
    • Pickle Farming
      • Installation
    • Pickle Metal Detector
      • Installation
    • Pickle Payments
      • Installation
    • Pickle Prisons
      • Installation
      • Commands
      • Exports
      • Events
      • Snippets
    • Pickle Rentals
      • Installation
    • Pickle Slapboxing
      • Installation
    • Pickle Taxi Job
      • Installation
    • Waypoints
      • Installation
      • Exports
Powered by GitBook
On this page
  • Client
  • Server
  1. Paid Resources
  2. Firefighter Job

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()
PreviousCommandsNextSnippets

Last updated 1 year ago