Configuration

Config = {}

-- Supports "qb" and "esx"
Config.Framework = "esx"

-- Seconds for respawning the prop in the same position
Config.SecondsToRespawn = 15

-- If true, when interacting with process or drugs, skill check is required
Config.UseSkillCheck = true

--[[
    nameOfTheZone = {
        center : the center of the zone
        radius : the radius of the zone
        loot : the item that you receive interacting
        maxLoot : maximum loot that you can receive by interacting
        random : if true you receive [1, maxLoot] loots, else you receive always maxLoot
        modifier : the time is calculated as = modifier * lootCount (seconds). Example 0.4 * 10 = 4 seconds, for picking up 10 items
        prop : name of the prop, you can put "nil" or "" if you want only the target on a zone
        numberOfTarget : how many props/target zones are spawned randomly
        items : item that you need for interacting, the table can be empty = { 
            ["item-name"] = required amount
        }
        positions : specific position where there are props/target zone. These are added to numberOfTarget
        Target : ox_target options
        Blip = {
            enable : if true, all players can see the blip on map,
            name : blip name on map
            sprite : reference https://docs.fivem.net/docs/game-references/blips/
            color : reference https://docs.fivem.net/docs/game-references/blips/#blip-colors
            display : https://docs.fivem.net/natives/?_0x9029B2F3DA924928
            scale : the scale of the blip on the map
            shortRange : https://docs.fivem.net/natives/?_0xBE8BE4FE60E27B72
        }
    }
]]
Config.DrugZones = {
    Marijuana = {
        center          = vector3(368.0073, 6612.5518, 27.8),
        radius          = 20,
        loot            = "marijuana",
        maxLoot         = 5,
        random          = true,
        modifier        = 0.4,
        prop            = "prop_weed_02",
        numberOfTarget  = 10,
        items           = {

        },
        positions       = {
            vector3(368.0073, 6612.5518, 28),
            vector3(368.2273, 6615.4224, 28),
            vector3(368.2251, 6619.5625, 28),
            vector3(368.1751, 6624.9980, 28),
        },
        Target          = {
            label       = "Collect",
            icon        = "fa-solid fa-hand-fist",
            distance    = 2.5,
        },
        Blip = {
            enable      = true,
            position    = vector3(368.0073, 6612.5518, 27.8),
            name        = "Marijuana",
            sprite      = 496,
            color       = 2,
            display     = 4,
            scale       = 0.9,
            shortRange  = false
        }
    }
}

--[[
    nameOfTheZone = {
        loot : the item that you receive processing
        maxLoot : maximum loot that you can receive by processing
        random : if true you will receive [1, maxLoot] loot, else you will receive maxLoot
        modifier : the time is calculated as = modifier * itemCount (seconds). Example 0.4 * 5 = 2 seconds, for processing 5 items
        allItems : if true, you will process all items shown in items table
        items : item that you need for interacting, the table can be empty = {
            ["item-name"] = required amount
        },
        positions : table of positions where you can process
        Target : ox_target options
        Blip = {
            enable : if true, all players can see the blip on map,
            name : blip name on map
            sprite : reference https://docs.fivem.net/docs/game-references/blips/
            color : reference https://docs.fivem.net/docs/game-references/blips/#blip-colors
            display : https://docs.fivem.net/natives/?_0x9029B2F3DA924928
            scale : the scale of the blip on the map
            shortRange : https://docs.fivem.net/natives/?_0xBE8BE4FE60E27B72
        }
    }
]]
Config.ProcessZones = {
    Marijuana = {
        loot            = "water",
        maxLoot         = 5,
        random          = true,
        modifier        = 0.4,
        allItems        = true,
        items           = {
            ["marijuana"] = 2
        },
        positions       = {
            vector3(-168.6870, 6254.5327, 31.4895),
            vector3(-171.1056, 6248.1626, 31.6235)
        },
        Target          = {
            label       = "Process",
            icon        = "fa-solid fa-network-wired",
            distance    = 2.5,
        },
        Blip = {
            enable      = true,
            position    = vector3(-168.6870, 6254.5327, 31.4895),
            name        = "Marijuana Process",
            sprite      = 496,
            color       = 2,
            display     = 4,
            scale       = 0.9,
            shortRange  = false
        }
    }
}

Seconds to respawn

After how many seconds does the prop respawn


Use Skillcheck

If true, a skill check will be present when you collect or process


Last updated