Configuration

This section covers all configuration options available for the houserob script. Make sure to review each setting to tailor the script to your server’s framework, inventory, police alerts, minigame di

Config = {}
Config.Debug = false
Config.Language = "en"
Config.ResetTime = 5 -- Time in hours to reset the house loot (default: 5 hours)
Config.Start = {
    Ped = 'g_m_m_chigoon_01',
    Coord = vector4(-233.13, 306.48, 91.28, 11.63),
    MailPhone = {
        Enabled = true,
        Phone = "qb",
    },
    Blip = {
        Enabled = true,
        Sprite = 40,
        Scale = 0.6,
        Color = 1,
        Text = "House Mission",
    }
}

Config.Shop = {
    { name = "drill",       price = 500, stock = 500 },
    { name = "hack_laptop", price = 500, stock = 500 },
    { name = "lockpick",    price = 500, stock = 500 },
}

Config.Houses = {

    --[[ 
    EXAMPLE HOUSE CONFIGURATION

    This is how you define a new house for the robbery system.
    You can copy this structure and change coordinates, items, etc.
    --]]

    -- ["house_5"] = { -- Make sure it is unique
    --     label = "American House", -- Name of the house (for UI/debugging)

    --     -- Coordinates where the player enters the house (world location)
    --     entrance = vector4(-6.62, -74.42, 61.87, 70.5), 

    --     -- Coordinates inside the house where the player will be teleported
    --     exit = vector4(266.02, -1007.61, -101.01, 359.85),
    --     hacked = false, -- Don't Touch This

    --     -- Items required to enter the house (optional)
    --     requiredItems = {
    --         -- Example format:
    --         -- { name = "fm_lockpick", amount = 1, remove = true },
    --         -- { name = "hack_laptop", amount = 1, remove = true }
    --         -- `remove = true` means the item will be consumed when entering
    --     },

    --     -- Safe configuration (inside the house)
    --     safe = {
    --         spawncoord = vector4(256.89, -997.86, -99.01, 90), -- Safe position inside the house
    --         requiredItem = 'drill', -- Item required to crack the safe
    --         lootItems = {
    --             -- Items inside the safe (you can customize quantity and drop chance)
    --             { name = "goldchain", quantity = math.random(1, 5), chance = 100 },
    --             { name = "goldbar", quantity = math.random(1, 5), chance = 100 },
    --         },
    --         looted = false -- Internal use: do not touch this
    --     },

    --     -- Lootable spots (tables, shelves, drawers, etc.)
    --     lootSpots = {
    --         {
    --             coord = vector4(265.94, -999.39, -99.01, 262.99),
    --             looted = false,
    --             lootItems = {
    --                 { name = "tosti", quantity = math.random(1, 5), chance = 100 },
    --                 { name = "sandwich", quantity = math.random(1, 5), chance = 100 },
    --             }
    --         },
    --         {
    --             coord = vector4(263.64, -995.48, -99.01, 357.53),
    --             looted = false,
    --             lootItems = {
    --                 { name = "tosti", quantity = math.random(1, 5), chance = 100 },
    --                 { name = "sandwich", quantity = math.random(1, 5), chance = 100 },
    --             }
    --         },
    --         {
    --             coord = vector4(261.5, -1002.48, -99.01, 6.19),
    --             looted = false,
    --             lootItems = {
    --                 { name = "tosti", quantity = math.random(1, 5), chance = 100 },
    --                 { name = "sandwich", quantity = math.random(1, 5), chance = 100 },
    --             }
    --         }
    --     },

    --     -- Lootable props (like bottles, laptops, etc.)
    --     lootProps = {
    --         {
    --             propname = "prop_wine_bot_01", -- Model name of the prop
    --             coord = vector4(258.34, -996.55, -98.57, 174.66),
    --             looted = false,
    --             lootItems = {
    --                 { name = "wine", quantity = math.random(1, 1), chance = 100 },
    --             }
    --         },
    --         {
    --             propname = "prop_laptop_lester",
    --             coord = vector4(262.06, -1004.18, -98.29, 245.09),
    --             looted = false,
    --             lootItems = {
    --                 { name = "hack_laptop", quantity = math.random(1, 1), chance = 100 },
    --             }
    --         },
    --     },

    --     -- Chance to alert the police (in %), higher = more risky
    --     alertChance = 30
    -- }
}

Config.SellItems = {
    Ped = "a_m_m_polynesian_01",
    Coord = vector4(4.79, -648.45, 30.76, 258.21),
    SellMoneyType = 'cash', -- 'cash' or 'bank'
    Blip = {
        Enabled = true,
        Sprite = 102,
        Scale = 0.6,
        Color = 1,
        Text = "Sell Items",
    },
    Items = {
        { name = 'bong',            price = 1000, },
        { name = 'book',            price = 2000, },
        { name = 'toiletry',        price = 500, },
        { name = 'boombox',         price = 800, },
        { name = 'bracelet',        price = 600, },
        { name = 'gold_bracelet',   price = 700, },
        { name = 'earings',         price = 300, },
        { name = 'gold_watch',      price = 400, },
        { name = 'laptop',          price = 150, },
        { name = 'necklace',        price = 250, },
        { name = 'pencil',          price = 1000, },
        { name = 'shampoo',         price = 1000, },
        { name = 'romantic_book',   price = 1000, },
        { name = 'soap',            price = 1000, },
        { name = 'watch',           price = 1000, },
        { name = 'wallet',          price = 1000, },
        { name = 'candle',          price = 1000, },
        { name = 'teddy_bear',      price = 1000, },
        { name = 'trophy',          price = 1000, },
    }
}

Last updated