βš™οΈConfiguration

Configuration files

config/_config.lua

Config = Config or {}
Config.locale = GetConvar("ox:locale", "en")

--[[
    Command to open the tablet and keybind it
]]
Config.TabletCommand = "business"
Config.KeyBind = "HOME"

--[[
    - "qb-core"
    - "esx" 
]]
Config.Core = ""

--[[
    - "qs-inventory"
    - "ox_inventory"
    - "qb-inventory"
    - "esx_default"
]]

-- ⚠️For qb-inventory you need to add a export. Please see documentation.⚠️ 
Config.Inventory = ""

Config.ImagePath = {
    ["qs-inventory"] = "nui://qs-inventory/html/images/%s",
    ["qb-inventory"] = "nui://qb-inventory/html/images/%s",
    ["ox_inventory"] = "nui://ox_inventory/web/images/%s",
    ["esx_default"] = "nui://business_system/itemImages/%s",
}

--[[
    - "illenium-appearance"
    - "fivem-appearance"
    - "qb-clothing"
    - "esx_skin"
]]
Config.PlayerSkinSystem = ""

--[[
    Change this if you are using another money management system: 
    - "qb-management"
    - "fd_banking"
    - "qb-banking"
    - "esx_addonaccount"
]]
Config.MoneyManagementSystem = ""

Config.JobPrefix = "business_"  -- Unique job prefix for the businesses

Config.ShowBusinessBlipWhenClosed = false -- Show the business blip when the business is closed

Config.ShopMenuWhenOpen = false -- Show the business shop menu when the business is open

Config.CanEnterDutyOutside = false -- Enable/Disable the option to enter duty outside the business polyzone

Config.BillBoardModel = "prop_forsale_lrg_02" -- Model for the billboard

Config.ShowBlipIfOnSale = true -- Show the blip if the business is on sale

Config.CashRegisterProp = "prop_till_02" -- Model for the cash register

Config.TrayProp = "prop_food_tray_01" -- Model for the tray

-- Multiplier of the money that is added to the business when buying an item in the store.
Config.ShopMultiplier = 0.33

-- Config for the tray inventory
Config.TrayInventory = {
    weight = 25000,
    slots = 10
}

-- Your unemployed job
Config.UnemployedJob = {
    name = "unemployed",
    grade = 0
}

-- Config for the private stash in wardrobe
Config.PersonalStash = {
    maxweight = 10000,
    slots = 10
}

-- Animations for the tablet
Config.tabletAnim = {
    dict = "amb@code_human_in_bus_passenger_idles@female@tablet@idle_a",
    anim = "idle_a"
}

-- The coords where the employees will pickup their orders
Config.marketCoords = {
    vector4(813.9957, -2982.6436, 6.0209, 266.5516), 
    vector4(2748.4167, 3472.4297, 55.6760, 250.5872)
}

Config.marketNPC = "mp_m_shopkeep_01" -- Lonja NPC model

-- Amount to pay for a job
Config.JobPayment = {
    ["delivery"] = {50, 100},
    ["deliver_supplies"] = {50, 100},
    ["mechanic"] = {50, 100},
    ["limousine"] = {50, 100},
}

-- Time to generate a new job, random number between the two values will be generated everytime
Config.TimeForNewJob = {
    ["delivery"] = {2, 4},
    ["deliver_supplies"] = {2, 4},
    ["mechanic"] = {2, 4},
    ["limousine"] = {2, 4},
}

-- The max amount of jobs that will appear on the tablet
Config.MaxJobsSimultaneouslyOnTablet = 3

-- The max players that can make jobs at the same time in a business
Config.MaxPlayersInJobsSimultaneously = 1

-- Only can start jobs when the business is open
Config.OnlyAcceptWhenBusinessIsOpen = true

-- The minimum amount of players on duty to start a job
Config.MinPlayersOnDuty = 1

-- The maximum distance to get a job in your business, if there aren't any jobs in that radius a random job will be picked.
Config.MaxRadiusToJob = 2000.0

-- Farmer ped model
Config.FarmerPed = "a_m_m_farmer_01"

-- Coords for the farmer ped
Config.FarmerCoords = vector4(2165.5854, 4968.7778, 41.4208, 221.5839)

-- Milk item
Config.MilkItem = "leche"

-- The milk amount you receive after milking a cow
Config.MilkAmount = 2

-- Where cows spawn
Config.Cows = {
    {
        cowcoords = vector4(2166.7197, 4977.9517, 41.2041, 225.8639)
    },
    {
        cowcoords = vector4(2160.9045, 4970.4106, 41.3194, 225.9861)
    },
    {
        cowcoords = vector4(2163.6340, 4973.0093, 41.3713, 225.7091)
    },   
}

-- Clear NPC from specific area; if vehicles is set to true, it will delete vehicles too.
Config.ClearNPCFromArea = {
    {coords = vector3(2551.6038, 2614.9641, 37.9454), radius = 5.0, vehicles = true}, 
}

-- Harvest Zones

Config.HarvestZones = {
    ["Lechuga"] = {
        name = "Lechuga",
        itemname = "lechuga",
        recolectCount = 1, 
        blip = 237,
        blipColor = 2,
        PolyZoneCoords = {
            vector3(2005.1060, 4878.4395, 42.7462),
            vector3(2031.6506, 4904.4482, 42.7394),
            vector3(2006.4258, 4929.3379, 42.7538),
            vector3(1980.0464, 4903.2412, 42.7469)
        },
        minZ = 42.7469 
    },
    ["Tomate"] = {
        name = "Tomate",
        itemname = "tomate",
        recolectCount = 1,
        blip = 237,
        blipColor = 59,
        PolyZoneCoords = {
            vector3(2033.1770, 4902.2588, 42.8815),
            vector3(2057.4277, 4878.3901, 42.7476),
            vector3(2031.7451, 4852.3711, 42.7487),
            vector3(2007.7594, 4876.9160, 42.7550)
        },
        minZ = 42.7550
    },
    ["Zanahoria"] = {
        name = "Zanahoria",
        itemname = "zanahoria",
        recolectCount = 1,
        blip = 237,
        blipColor = 47,
        PolyZoneCoords = {
            vector3(2044.8087, 4913.5259, 41.0759),
            vector3(2073.3647, 4941.3345, 40.9667),
            vector3(2096.9126, 4917.8682, 40.9657),
            vector3(2068.2405, 4889.1870, 40.9648)
        },
        minZ = 40.9648
    },
    ["Cebolla"] = {
        name = "Cebolla",
        itemname = "cebolla",
        recolectCount = 1,
        blip = 237,
        blipColor = 37,
        PolyZoneCoords = {
            vector3(2069.6594, 4944.2744, 41.0642),
            vector3(2042.0983, 4915.4336, 40.9636),
            vector3(2016.8876, 4939.9873, 40.9688),
            vector3(2046.0085, 4968.0229, 40.9661)
        },
        minZ = 40.9661 
    },
    ["Col"] = {
        name = "Col",
        itemname = "col",
        recolectCount = 1, 
        blip = 237,
        blipColor = 50,
        PolyZoneCoords = {
            vector3(1979.6182, 4864.0371, 45.3850),
            vector3(1962.4655, 4881.8647, 45.3851),
            vector3(1928.0870, 4847.3384, 45.3854),
            vector3(1945.3313, 4828.9346, 45.3852)
        },
        minZ = 42.7469
    }

        -- TEMPLATE
    -- ["ITEMNAME"] = {
    --     name = "ITEM LABEL",
    --     itemname = "ITEMNAME",
    --     recolectCount = AMOUNT YOU RECIEVE WHEN RECOLECT, -- Cantidad que recibes al recolectar
    --     blip = BLIP SPRITE,
    --     blipColor = BLIP COLOR,
    --     PolyZoneCoords = { -- THE COORDS OF THE 4 SQUARES OF THE BOX
    --         vector3(0.0, 0.0, 0.0, 0.0), 
    --         vector3(0.0, 0.0, 0.0, 0.0),
    --         vector3(0.0, 0.0, 0.0, 0.0),
    --         vector3(0.0, 0.0, 0.0, 0.0),
    --     },
    --     minZ = 42.7469 -- THE MIN Z FOR THE POLYZONE, NORMALLY THE LOWEST Z IN PolyZoneCoords
    -- }
}

-- Vehicle models for mechanic jobs
Config.VehicleModels = {
    "asea",
    "t20",
    "dubsta",
    "asbo",
    "dilettante",
    "prairie",
    "exemplar",
    "felon",
    "oracle",
    "oracle2",
    "zion",
    "sentinel",
    "chino",
    "dominator",
    "deviant",
    "dukes",
    "gauntlet",
    "impaler",
    "phoenix",
    "sabregt",
    "vigero",
    "dubsta",
    "fq2",
    "granger",
    "gresley",
    "habanero",
    "huntley",
    "landstalker",
    "rocoto",
    "serrano",
    "seminole",
    "comet2",
    "feltzer2",
    "buffalo",
    "futo",
    "fusilade",
    "massacro",
    "ninef"


}


Config.Debug = false -- Debug mode

config/npcs.lua

In this file you can configure the names of the npcs, as well as the models that can appear in the jobs.

config/jobsCoords.lua

The coordinates for the jobs.

Last updated