πŸ”§ Configuration

πŸ”§ Configuration

Client Config

return {
    showMarkers = true, -- If disabled it will not show the markers
 
    distanceBetweenSpots = 15, -- How far can a spot be from another spot
 
    disableKeys = {
        25, -- aim
        21, -- sprint
    },
 
    debug = false, -- If enabled it will show zones of where the player will find items
 
 
    -- Zones which the player cannot create spots in
    -- list of zones: https://docs.fivem.net/natives/?_0xCD90657D4C30E1CA
    bannedZones = {
        ['STRAW'] = true
    },
 
    markerOffset = vec3(1.0, 0.0, 0.1),
 
    materials = {
        [-1286696947] = true,
        [-1942898710] = true,
        [-1595148316] = true,
        [-1885547121] = true,
        [-2041329971] = true,
        [-840216541] = true,
        [-461750719] = true,
        [-700658213] = true,
        [-913351839] = true,
        [1109728704] = true,
        [1635937914] = true,
        [1333033863] = true,
        [1144315879] = true,
        [2128369009] = true,
        [951832588] = true,
        [581794674] = true,
        [510490462] = true,
    }
}

Server Config

return {
    rewardMax = 3, -- How many things can you MAXIMUM get from a single robbery?
    rewardMin = 1, -- How many things can you MINIMUM get from a single robbery?
 
    --[[
        name = string, -- The name of the item
        chance = float, -- The chance of getting this item (0.0 - 1.0) (1.0 = 100%)
        amount = integer, -- The amount of this item you will get (optional)
        min = integer, -- The minimum amount of this item you will get (optional)
        max = integer, -- The maximum amount of this item you will get (optional)
    ]]
    rewardItems = {
        {name = 'scrapmetal', chance = 0.5, min = 1, max = 4},
        {name = 'weapon_pistol', chance = 0.01, amount = 1, metadata = {serial = 'scrapped'} },
    },
 
    object = {
        model = `prop_ep_metaldetector`, -- The model of the object
        offset = vec3(0.190000, 0.02500, -0.01), -- The offset of the object
        rotation = vec3(270.000000, 0.000000, 25.0), -- The rotation of the object
        bone = 18905, -- The bone of the object
    },
 
    trowelItem = 'trowel', -- The item name of the trowel
    metalDetectorItem = 'metaldetector', -- The item name of the metal detector
}

Shared Config

return {
    cooldown = 60, -- How often can a client create new spots, the lower the number the more performance the server will use
 
    shop = {
        coords = vec4(-1167.040, -2004.948, 12.161, 27.444), -- The coords of the shop
        ped = `a_f_y_business_01`,
        blip = {
            sprite = 52, -- The blip sprite
            color = 2, -- The blip color
            scale = 0.7, -- The blip scale
            label = 'Metal Detector Shop', -- The blip label
        },
 
 
        --[[
            Items which the bed shop will purchase from the player
            The key is the item name, the value is the price
 
            Example:
            ['item'] = price
            item = price
 
            if u do not want the ped to buy items just do sellItems = false
        ]]
        sellItems = {
            scrapmetal = 100,
        },
 
        -- if do not want the ped to sell items just do items = false
        items = {
            { name = 'metaldetector', price = 100 },
            { name = 'trowel', price = 50 },
        }
    }
}