🖇️General Config

General Config - config.lua

Config = {}

Config.Target = "ox_target"
Config.MinigameName = "safe-crack" -- by default pd-safe (dependencies)

Config.Stores = {
    [0] = {
        ["name"] = "24/7 Store",
        ["coords"] = { x = 1727.6646, y = 6414.9590, z = 34.0372, },
        ["heading"] = 246.6136,
        ["ped"] = "mp_m_shopkeep_01",
        ["job"] = {
            ["name"] = "police", -- police job name
            ["grade"] = 0, -- minimum grade required to open the shop 
        }
    },

    [1] = {
        ["name"] = "24/7 Store",
        ["coords"] = { x = 24.3631, y = -1347.4353, z = 28.4970 },
        ["heading"] = 277.3540,
        ["ped"] = "mp_m_shopkeep_01",
        ["robbery"] = {
            ["safe_position"] = vector4(30.8, -1340.4, 28.4970, 180 + 87.7148),
            ["open_door_heading"] = 0.0,
            ["reset_time"] = 60 * 60 * 1000 -- hour
        }
    }
}

Config.SafeCracks = 0 -- how many safe cracks person has to do when robbing a shop. Default: 0
Config.Item = "" -- item required to start robbery. Default: ""
Config.PoliceJob = "police" -- Police job name
Config.PoliceRequired = 0 -- Police Required to start a robbery by a player.

Config.Items = {
    [0] = {
        ["name"] = "Burger", -- Display Name
        ["price"] = 2.0, -- Item Price
        ["item"] = "burger" -- Inventory Item
    },

    [1] = {
        ["name"] = "Sprunk", -- Display Name
        ["price"] = 5.0, -- Item Price
        ["item"] = "sprunk" -- Inventory Item
    }
}

Config.Messages = {
    ["no_money"] = "You don't have enough money",
    ["bought_items"] = "You have successfully purchased your cart items",
    ["pick_loot"] = "Pick the loot",
    ["safe_crack"] = "Safe crack the safe",
    ["open_shop"] = "Open Shop Menu",
    ["police_alarm"] = "Shop's alarm has been activated. Police has been notified",
    ["not_enough_police"] = "There are insufficient police officers on the server",
    ["cant_open_shop"] = "You do not have required job or grade to open the shop"
}

Config.PayAccount = "bank" -- or money or black_money

Config.Blip = {
    ["sprite"] = 59,
    ["scale"] = 0.75,
    ["colour"] = 2
}

Config.SafeLoot = {
    [0] = {
        model = "bkr_prop_bkr_cashpile_01",
        item = {
            name = "money",
            quantity = 5000
        },

        time = 5000,
        offset = {
            x  = -0.35,
            y = 0.45,
            z = 0.85
        },
        heading = 90.0
    },

    [1] = {
        model = "prop_money_bag_01",
        item = {
            name = "money",
            quantity = 100
        },

        time = 2000,
        offset = {
            x  = -0.15,
            y = 0.2,
            z = 0.1
        },
        heading = 20.0
    },

    [2] = {
        model = "ba_prop_battle_bag_01b",
        item = {
            name = "money",
            quantity = 500
        },

        time = 2000,
        offset = {
            x  = -0.4,
            y = 0.4,
            z = 0.1
        },
        heading = 30.0
    },

    [3] = {
        model = "ch_prop_ch_moneybag_01a",
        item = {
            name = "money",
            quantity = 100
        },

        time = 2000,
        offset = {
            x  = -0.4,
            y = 0.1,
            z = 0.1
        },
        heading = 90.0
    }
}

Last updated