📃Config
Config = {}
-- Framework Settings --
Config.Framework = "qb" -- "qb" or "esx"
Config.CoreName = "qb-core" -- You qb-core folder name
Config.Target = "qb" -- "qb" or "ox"
Config.Notify = "ox" -- "qb" or "okok" or "ox" ( open code on config_functions.lua )
Config.InventoryPath = "qb-inventory/html/images/" -- Set this to your inventory Directory [ ox_inventory/web/images/ ] | [ qs-inventory/html/images/ ]
Config.Inventory = "oldqb" -- "oldqb" , "ox", "newqb", "qs", "tgiann"
Config.EmoteMenu = "rp" -- "rp" or "dp" or "scully" or "aty_emote" or "cylex_animmenuv2" or "r_animations" ( open code on config_functions.lua )
Config.SpawnWhenLoad = true -- If true, all objects saved around the map gona spawn automatic when server start
Config.Debug = true -- If true, some prints gona show on console to debug
Config.AutoDatabase = true -- If true the SQL gona run automatic
-- Framework Settings --
-- Useable Items --
Config.UseableItems = {
[1] = { item = "prop_beach_fire", prop = "prop_beach_fire", remove = false, height = -1.2 },
[2] = { item = "prop_chair_08", prop = "prop_chair_08", remove = false, height = -0.7 },
[3] = { item = "prop_gazebo_02", prop = "prop_gazebo_02", remove = false, height = -0.7 },
[4] = { item = "prop_table_03b", prop = "prop_table_03b", remove = false, height = -0.7 },
[5] = { item = "prop_skid_tent_03", prop = "prop_skid_tent_03", remove = false, height = -1.6 },
[6] = { item = "prop_gazebo_01", prop = "prop_gazebo_01", remove = false, height = -0.7 },
[7] = { item = "prop_skid_tent_cloth", prop = "prop_skid_tent_cloth", remove = false, height = -1.6 },
[8] = { item = "prop_weed_tub_01b", prop = "prop_weed_tub_01b", remove = false, height = -0.7 },
}
-- Useable Items --
-- Cooking Settings --
Config.Cooking = true -- Enable cooking on beach fire?
Config.CookingRecipes = {
[1] = {
item = "grilled_burger_meat", -- Item player gona receive when cook
label = "Grilled Burger", -- This is only the label to show's on menu
materials = {
[1] = { item = "raw_burger", amount = 1 },
}
},
[2] = {
item = "grilled_meat", -- Item player gona receive when cook
label = "Grilled Meat", -- This is only the label to show's on menu
materials = {
[1] = { item = "raw_meat", amount = 1 },
}
},
[3] = {
item = "grilled_fish", -- Item player gona receive when cook
label = "Grilled Fish", -- This is only the label to show's on menu
materials = {
[1] = { item = "raw_fish", amount = 1 },
}
},
[4] = {
item = "grilled_bacon_eggs", -- Item player gona receive when cook
label = "Grilled Bacon & Eggs", -- This is only the label to show's on menu
materials = {
[1] = { item = "bacon_pieces", amount = 1 },
}
}
}
-- Cooking Settings --
-- Search Bins Settings --
Config.SearchBins = true -- Enable people search bins and trash around the map?
Config.TrashModels = { 161465839, -228596739, 666561306, -1096777189, -1426008804, 218085040, -58485588, 1437508529, 651101403 }
Config.TrashCooldown = 1 -- 1 Minute cooldown for each trash searching
Config.TrashRefresh = 5 -- 5 Minutes to all searchs searched refresh and can be searched again
Config.TrashAmountItems = { min = 1, max = 3 } -- Player gona receive a random amount 1~3 of the list of Config.TrashRewards
Config.TrashRewards = {
[1] = { item = "metalscrap", min = 1, max = 3, chance = 90 },
[2] = { item = "glass", min = 1, max = 3, chance = 90 },
[3] = { item = "plastic", min = 1, max = 1, chance = 90 },
[4] = { item = "steel", min = 1, max = 1, chance = 90 },
[5] = { item = "rubber", min = 1, max = 1, chance = 90 },
[6] = { item = "samsungphone", min = 1, max = 1, chance = 30 },
[7] = { item = "goldchain", min = 1, max = 1, chance = 15 },
[8] = { item = "rolex", min = 1, max = 1, chance = 15 },
[9] = { item = "iphone", min = 1, max = 1, chance = 15 },
}
-- Search Bins Settings --
-- Trader Settings --
Config.TraderEnabled = true -- Enable trader system? People can change their items found on trash for other ones
Config.TraderHours = { enable = false, min = 21, max = 24 } -- Enable specific hours to trader?
Config.TraderPed = { -- Trader ped settings
model = "a_m_m_og_boss_01",
location = vector4(450.34, -848.1, 28.02, 267.18),
blip = { enable = true, sprite = 209, colour = 40, scale = 0.8, name = "Trader" },
}
Config.TradeSettings = { -- Every server restart only one of the options will show on menu for dont have the same items every time. You can create more options
["Option1"] = {
["lockpick"] = { -- Item player gonna receive
[1] = { item = "metalscrap", amount = 5 },
[2] = { item = "glass", amount = 2 },
},
["advancedlockpick"] = { -- Item player gonna receive
[1] = { item = "steel", amount = 10 },
[2] = { item = "rubber", amount = 5 },
},
},
["Option2"] = {
["diamond_chain"] = { -- Item player gonna receive
[1] = { item = "metalscrap", amount = 5 },
[2] = { item = "glass", amount = 2 },
},
["emerald_chain"] = { -- Item player gonna receive
[1] = { item = "steel", amount = 10 },
[2] = { item = "rubber", amount = 5 },
},
},
}
-- Trader Settings --
-- Custom Commands --
Config.Commands = {
checkobjects = {
command = "checkobjects", -- Command name
help = 'Check all camping objects from the server', -- Command help
restricted = 'group.admin', -- Permissions
params = {},
},
checkobjectsbycid = {
command = "checkobjectsbycid", -- Command name
help = 'Check all camping objects from a specific citizenid', -- Command help
restricted = 'group.admin', -- Permissions
params = {
{
name = 'citizenid',
help = 'The citizen ID of the player to search',
},
},
},
}
-- Custom Commands--
-- Asking Money --
Config.BegMoneyEnabled = true -- Enable asking money? If true, player can ask money to npc's around the zones
Config.BegCooldown = 1 -- 1 Minute cooldown for each npc
Config.Zones = {
[1] = {
name = "Legion Square", -- Name of the zone
coords = {180.47137451172, -837.81341552734, 268.32186889648, -869.63739013672, 212.00959777832, -1025.9193115234, 122.54343414307, -994.43200683594},
reward = { min = 1, max = 3 }, -- Min & Max reward player can receive
chances = { -- Chances of player response
success = 50,
agressive = 20,
callcops = 30,
}
},
}
-- Asking Money --
-- Dangerous Zones --
Config.DangerousZonesEnabled = true -- Enable dangerous zones? If true, some peds will spawn around the zones and player can search them for loot
Config.DangerousZones = {
[1] = {
name = "Sandy Motel", -- Name of the zone
loc = vector3(1545.37, 3571.53, 35.36), -- Locations of the zone
peds = { -- Random places where spawn some agressive npc's
[1] = { model = "a_m_m_tramp_01", weapon = "weapon_knife", prop = "prop_michael_backpack" },
[2] = { model = "a_m_m_tramp_01", weapon = "weapon_bat", prop = "prop_michael_backpack" },
[3] = { model = "a_m_m_tramp_01", weapon = "weapon_bottle", prop = "prop_michael_backpack" },
[4] = { model = "a_m_m_tramp_01", weapon = "weapon_unarmed", prop = "prop_michael_backpack" },
[5] = { model = "a_m_m_tramp_01", weapon = "weapon_crowbar", prop = "prop_michael_backpack" },
},
loot = {
[1] = { item = "lockpick", amount = { min = 1, max = 2 }, chance = 20 },
[2] = { item = "plastic", amount = { min = 3, max = 8 }, chance = 80 },
[3] = { item = "metalscrap", amount = { min = 3, max = 8 }, chance = 80 },
}
}
}
-- Dangerous Zones --
-- Spawning Animals --
Config.SpawningAnimals = true -- Enable spawning animals? If true, some animals will spawn around the map and player can search them for loot
Config.Animals = {
[1] = {
cooldown = 2, -- Cooldown in minutes for each animal when someone kill to respawn again ( This cooldown works for respawn and same animal can be interacted again )
blip = { enable = true, sprite = 141, colour = 0, scale = 0.8, name = "Cows", coords = vector3(2517.1, 4736.95, 34.3) }, -- Blip settings
animal = "a_c_cow", -- Animal model name
loot = { -- @dead This option allows to player only receive the option you have true if the animal is dead
[1] = { item = "raw_meat", dead = true, amount = { min = 1, max = 2 }},
[2] = { item = "cowhide", dead = true, amount = { min = 1, max = 1 }},
[3] = { item = "milk", dead = false, amount = { min = 1, max = 1 } },
},
locations = { -- Locations where the animal will spawn
[1] = vector3(2517.1, 4736.95, 34.3),
[2] = vector3(2510.73, 4744.79, 34.3),
[3] = vector3(2501.64, 4754.16, 34.3),
[4] = vector3(2494.35, 4761.46, 34.36),
[5] = vector3(2473.78, 4760.86, 34.3),
[6] = vector3(2463.96, 4769.58, 34.37),
}
},
[2] = {
cooldown = 2, -- Cooldown in minutes for each animal when someone kill to respawn again ( This cooldown works for respawn and same animal can be interacted again )
blip = { enable = true, sprite = 141, colour = 0, scale = 0.8, name = "Pigs", coords = vector3(2243.81, 4873.84, 40.82) }, -- Blip settings
animal = "a_c_pig", -- Animal model name
loot = { -- @dead This option allows to player only receive the option you have true if the animal is dead
[1] = { item = "raw_meat", dead = true, amount = { min = 1, max = 2 }},
[2] = { item = "pigskin", dead = true, amount = { min = 1, max = 1 }},
[3] = { item = "bacon_pieces", dead = false, amount = { min = 1, max = 1 } },
},
locations = { -- Locations where the animal will spawn
[1] = vector3(2243.81, 4873.84, 40.82),
[2] = vector3(2236.33, 4881.94, 40.96),
[3] = vector3(2228.31, 4890.45, 40.69),
[4] = vector3(2232.3, 4926.44, 40.81),
[5] = vector3(2225.03, 4934.97, 40.9),
[6] = vector3(2220.5, 4934.38, 40.88),
}
},
}
-- Spawning Animals --
-- Box Settings --
Config.BoxStash = {
weight = 20000,
slots = 15,
}
-- Box Settings --
Last updated