Configuration

The configuration file of the Housing Script

Main Config (shared/config.lua)

Config = {}

Config.AdminGroup = "admin"
Config.JobProperty = "dinasty"

--Target
Config.target = "qb-target" -- qb-target, ox_target etc...

-- Use ox?
Config.ox_inventory = false

-- Enable blips if you has key or is owner or is on sell
Config.HousesBlips = {
    Selling = false, -- All time view on map blips
    Owned = true,
    HasKey = true
}

-- If Config.HousesBlips Selling = true then command is unnecessary and can set to false
Config.housesSellingCommand = "houses" -- Alternate blip of selling houses, can set false if HousesBlips.Selling is true

Config.SellBlip = {
    Sprite = 350, -- 374
    Display = 4,
    Scale = 0.6,
    Color = 0,
}

Config.Blip = {
    Sprite = 492,
    Display = 4,
    Scale = 0.6,
    Color = 0,
}

Config.MaxKeys = -1 -- Infinite = -1 
Config.SaveFurnishEvery = 5 -- minutes

Config.PlayersCanTrasnferOwner = true

Config.PlayersCanSellHouse = true

--Keys
Config.OpenMenuDecoration = 246
Config.OpenManageMenu = 47


-- Some furnis delete on this example because use 1350 furnish and can't copy here
Config.Furnitures = {
    ["Category"] = {
        --Prop without action
       [`prop_couch_03`] = {
            prop = "prop_couch_03",
            price = 0,
            action = nil,
        },
        --Prop with action
       [`prop_couch_04`] = {
            prop = "prop_couch_03",
            price = 0,
            action = function(entity, houseId, furniId, isExterior, hasKey)
                -- create what you want with some checks
            end
        },
    }
}

--You can add more house exterior model props
Config.HousesProp = {
    ["House #22"] = "lf_house_01_",
}

--The orginal config have some shells configured from K4MB1 "All Shells Sub Pack"
Config.HouseShells = {
    -- add the shells you have
    ["classichouse_shell"] = {
        pos = vec3(4.78, -2.11, -3.26),
        hdg = 87.93,
        prop = `classichouse_shell`,
    },
}

Language (shared/language.lua)

Last updated