m-Scripts
  • m-Scripts Documentation
  • QBCore
    • Jobs
      • 🚗[QB] TunerJob
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • 🍞[QB] BeanMachine
        • 🛠️Installation
        • 🗒️Config
      • 🍔[QB] Burgershot
        • 🛠️Installation
        • 🗒️Config
      • 🍈[QB] CoolBeans
        • 🛠️Installation
        • 🗒️Config
      • 🚚[QB] Deliveries
        • 🛠️Installation
        • 📃Config
          • 📃config_functions
      • 🍎[QB] Farming
        • 🛠️Installation
        • 🗒️Config
      • 🐟[QB] Fishing
        • 🛠️Installation
        • 🗒️Config
          • 📄config_diving
          • 📄config_fishingnet
          • 📄config_fishingrod
          • 📄config_functions
          • 📄config_language
          • 📄config_seashells
          • 📄config_tournament
          • 📄config_upgrades
      • 🚛[QB] Garbage
        • 🛠️Installation
        • 🗒️Config
      • 🗝️[QB] GoldRush
        • 🛠️Installation
        • 🗒️Config
      • ⛰️[QB] Hunting
        • 🛠️Installation
        • 🗒️Config
      • 🪵[QB] Lumberjack
        • 🛠️Installation
        • 🗒️Config
      • ⛏️[QB] Mining
        • 🛠️Installation
        • 🗒️Config
      • 🛢️[QB] Oil Factory
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • ☕[QB] Pond Coffee
        • 🛠️Installation
        • ❓Common Questions
        • 🗒️Config
      • 🚚[QB] Trucker
        • 🛠️Installation
        • 🗒️Config
          • 📄Functions
          • 📄Language
      • 🥃[QB] Vanilla
        • 🛠️Installation
        • 🗒️Config
      • 🛻[QB] Mechanic Run
        • 🛠️Installation
        • 🗒️Config
      • 🥃[QB] Bahamas
        • 🛠️Installation
        • 📄Config
      • 🔫[QB] Ammunation
        • 🛠️Installation
        • 📄Config
      • 🐟[QB] Pearls
        • 🛠️Installation
        • 📄Config
      • 🔓[QB] Impound
        • 🛠️Installation
        • 📄Config
        • ✅Garages
      • 🚘[QB] Vehicleshop
        • 🛠️Installation
        • 📄Config
          • Functions
          • Job
          • Language
        • ❓Common Questions
    • General
      • 🏕️[QB] Camping
        • 🛠️Installation
        • 🗒️Config
          • Consumables
          • Language
      • 🎄[QB] Christmas
        • 🛠️Installation
        • 🗒️Config
      • 🎃[QB] Halloween
        • 🛠️Installation
        • 🗒️Config
      • 📔[QB] Insurance
        • 🛠️Installation
        • 🖥️Compatibilities
        • 🗒️Config
        • 🔁Server-Exports
      • 🏘️[QB] Vespucci
        • 🛠️Installation
        • 🗒️Config
          • Brewery
          • Digital Den
          • Masquerade
          • Pro Bikes
      • 🏖️[QB] Beach Activities
        • 🛠️Installation
        • 🗒️Config
      • 🚘[QB] Car Rental
        • 🛠️Installation
        • 📄Config
        • 🖥️Compatibilities
      • ✈️[QB] Sky Racing
        • 🛠️Installation
        • 📄Config
      • 🚘[QB] Car Wash
        • 🛠️Installation
        • 📄Config
      • 🪨[QB] Grinder
        • 🛠️Installation
        • 📄Config
      • 📹[QB] SpyCams & CCTV's
        • 🛠️Installation
        • 📄Config
      • 🏠[QB] Motel
        • 🛠️Installation
        • 📄Config
        • 🖥️Compatibilities
      • 🏚️[QB] Job Center
        • 📄Config
      • 🛠️[QB] Crafting
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
    • Illegal
      • 🔫[QB] Gangs
        • 🛠️Installation
        • 🗒️Config
      • 🔔[QB] Drug Selling
        • 🗒️Config
      • 🌱[QB] Drugs
        • 🛠️Installation
        • 🗒️Config
      • 🍯[QB] Craft Potion
        • 🛠️Installation
        • 🗒️Config
      • 🅱️[QB] Blackmarket
        • 🛠️Installation
        • 🗒️Config
          • config_functions
          • config_language
      • 🚗[QB] Car Thief
        • 🗒️Config
      • 🏠[QB] House Robbery
        • 🛠️Installation
        • 🗒️Config
      • 💎[QB] Jewelry
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • ®️[QB] Mini Robberys
        • 🛠️Installation
        • 🗒️Config
      • 💰[QB] MoneyWash
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🔫[QB] Rob NPC
        • 🛠️Installation
        • 🗒️Config
      • 🏃‍♂️[QB] Runs
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • ⛽[QB] Steal Fuel
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🏬[QB] Store Robbery
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 🪛[QB] Scrapyard
        • 🛠️Installation
        • 🗒️Config
          • Functions
          • Language
      • 👾[QB] Territories
        • 🛠️Installation
        • 📄Config
          • Functions
      • 🏨[QB] GoPostal
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • S_utils
  • ESX
    • Jobs
      • 🚗[ESX] Tunerjob
        • ❗Dependencies
        • 🛠️Installation
          • ℹ️OX-Inventory
          • ℹ️QS-Inventory
        • 🗒️Config
          • BlacklistVehicles
          • Craft
          • Functions
          • Language
          • Targets
          • Wraps
          • Events
        • ❓Common Questions
      • 🚚[ESX] Trucker
        • 🛠️Installation
        • 🗒️Config
          • 📄Functions
          • 📄Language
      • 🪵[ESX] Lumberjack
        • 🛠️Installation
        • 🗒️Config
      • 🛻[ESX] Mechanic Run
        • 🛠️Installation
        • 🗒️Config
      • ⛏️[ESX] Mining
        • 🛠️Installation
        • 🗒️Config
      • 🎣[ESX] Fishing
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • Diving
          • Fishingnet
          • Fishingrod
          • Seashells
          • Tournament
          • Upgrades
    • General
      • 🚘[ESX] Car Rental
        • 🛠️Installation
        • 🗒️Config
      • 📃[ESX] Insurance
        • 🛠️Installation
        • 🖥️Compatibilities
        • 📄Config
        • 🔁 Server-Exports
      • 🚘[ESX] Car Wash
        • 🛠️Installation
        • 📄Config
      • 📹[ESX] SpyCams & CCTV's
        • 🛠️Installation
        • 📄Config
        • 🏠[ESX] Motel
          • 🛠️Installation
          • 📄Config
          • 🖥️Compatibilities
      • 🛠️[ESX] Crafting
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
      • 🎄[ESX] Christmas
        • 🛠️Installation
        • 📄Configs
    • Illegal
      • 🔫[ESX] Gangs
        • 🛠️Installation
        • 📄Config
        • ❓Common Questions
      • 🅱️[ESX] Blackmarket
        • 🛠️Installation
        • 🗒️Config
          • config_functions
          • config_language
      • 🏨[ESX] GoPostal
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
          • S_utils
  • Both Framework
    • Scripts
      • 🚗Car Rebuild
        • 🛠️Installation
        • 🗒️Config
      • 🗺️City Guide
        • 🛠️Installation
        • 📄Config
          • Functions
          • Language
      • 🛒Shops
        • 📄Config
        • 🛠️Installation
      • 🔁Reputation
        • 📄Config
        • 🛠️Installation
        • ⁉️Exports & Commands
          • Server Exports
          • Commands
      • 💤AFK System
        • 📄Configs
        • 🛠️Installation
      • 🚗Garages
        • 🛠️Installation
        • 📑User Guide
          • Create Garages
          • Create Private Garage
          • Impound & Auctions
          • Add vehicle to gang/job
          • Commands
        • 🔁Compatibilities
      • ✈️Airplane Job
        • 🛠️Installation
        • 📃Configs
        • ℹ️Exports
      • 📋Scoreboard
        • 📃Config
      • 📦StorageUnits
        • 🛠️Installation
        • 📃Config
Powered by GitBook
On this page
  1. QBCore
  2. General
  3. [QB] Camping

Config

Config = {}

--------------------------
-- Utility
--------------------------
Config.CoreName = "qb-core" -- qb-core or esx:getSharedObject
Config.Target = "qb-target" -- Your target name
Config.QBMenu = "qb-menu" -- Your qb-menu name
Config.Job = "all" -- Allow only one job
Config.InvLink = "qs-inventory/html/images/" -- Set this to your inventory Directory
Config.PoliceJob = "police" -- For search tent's

--------------------------
-- Objects
--------------------------
Config.Objects = {
    ["box"] = { model = `prop_weed_tub_01b`, freeze = true },
    ["fire"] = { model = `prop_beach_fire`, freeze = true },
    ["tent"] = { model = `prop_skid_tent_01`, freeze = true },
    ["chair"] = { model = `prop_table_03b_chr`, freeze = true },
    ["table"] = { model = `prop_table_03b_cs`, freeze = true },
    ["yoga3"] = { model = `prop_yoga_mat_03`, freeze = true },
    ["yoga2"] = { model = `prop_yoga_mat_02`, freeze = true },
    ["yoga1"] = { model = `prop_yoga_mat_01`, freeze = true },
}

--------------------------
-- Keys
--------------------------
Config.Keys = {
    Up = 111, -- NUMPAD 8
    Down = 110, -- NUMPAD 5
    Front = 172, -- ARROW UP
    Back = 173, -- ARROW DOWN
    Left = 174, -- ARROW LEFT
    Right = 175, -- ARROW RIGHT
    RotationL = 117, -- NUMPAD 7
    RotationR = 118, -- NUMPAD 8
}

---------------
-- Zones
---------------
Config.CampingZones = {
    EnableZones = false, -- Enable specific zones to camping?
    CampingZones = { -- Zone available to camping if enbalezones true -- https://forums.gta5-mods.com/topic/5749/reference-map-zone-names-and-zone-labels
        'MTCHIL',
        'CANNY',
        'MTGORDO',
        'CMSW',
        'MTJOSE'
    },
}

--------------------------
-- Yoga
--------------------------
Config.Yoga = {
    EnableZones = false, -- Enalbe specific zones to yoga?
    YogaZones = { -- Zone available to make yoga -- https://forums.gta5-mods.com/topic/5749/reference-map-zone-names-and-zone-labels
        'MTCHIL',
        'CANNY',
        'MTGORDO',
        'CMSW',
        'MTJOSE'
    },
    RelieveStress = "hud:server:RelieveStress", -- Your trigger to relieve stress
    Amount = math.random(2,4), -- Amount relieve
}

Config.Skillbar = {
    duration = math.random(7500, 15000), -- Duration
    pos = math.random(10, 30), -- Position
    width = math.random(10, 20), -- Width
}


--------------------------
-- Chairs
--------------------------
Config.Chairs = {
    'prop_table_03b_chr',
}

Config.Position = {
    prop_table_03b_chr = { scenario = 'PROP_HUMAN_SEAT_BENCH', verticalOffset = -0.5, forwardOffset = 0.0, leftOffset = 0.0},
}

--------------------------
-- Cooking
--------------------------
Config.CallCops = true -- Call cops when people cooking?
Config.Percentage = 5 -- 1-10 | 5 = 50%
Cooking = {
    ['grilledmeat'] = { -- Item name
        menuLabel = 'Grilled Meat', -- Item name (Label)
        itemName = 'grilledmeat', -- Item name
        xpNeed = 0, -- XP need to cooking
        xpEarn = 1, -- XP Earn after cooking
    },
    ['grilledfish'] = {
        menuLabel = 'Grilled Fish',
        itemName = 'grilledfish',
        xpNeed = 5,
        xpEarn = 1,
    },
    ['grilledcutlets'] = {
        menuLabel = 'Grilled Cutlets',
        itemName = 'grilledcutlets',
        xpNeed = 10,
        xpEarn = 1,
    },
    ['grilledskewers'] = {
        menuLabel = 'Grilled Skewers',
        itemName = 'grilledskewers',
        xpNeed = 15,
        xpEarn = 1,
    },
}

--------------------------
-- Shop 
--------------------------
Config.Peds = { 
    {type = 4, hash = GetHashKey("s_m_m_gaffer_01"), x = -555.63,  y = -618.76,  z = 33.68, h = 180.61}, -- Los Santos
}

Config.Blips = {
    Enable = true, -- Enable blips?
    Sprite = 441, -- Blip Sprite
    Scale = 0.8, -- Blip Scale
    Colour = 35, -- Blip Colour
    Name = "Camping Shop", -- Name of the blip
    Location = vector3(-555.63, -618.76, 33.68) -- Blip Location
}

Config.Items = {
    [1] = { name = "box", price = 0, amount = 10, info = {}, type = "item", slot = 1 },
    [2] = { name = "fire", price = 0, amount = 10, info = {}, type = "item", slot = 2, },
    [3] = { name = "tent", price = 0, amount = 10, info = {}, type = "item", slot = 3, },
    [4] = { name = "table", price = 0, amount = 10, info = {}, type = "item", slot = 4, },
    [5] = { name = "chair", price = 0, amount = 10, info = {}, type = "item", slot = 5, },
    [6] = { name = "yoga1", price = 0, amount = 10, info = {}, type = "item", slot = 6, },
    [7] = { name = "yoga2", price = 0, amount = 10, info = {}, type = "item", slot = 7, },
    [8] = { name = "yoga3", price = 0, amount = 10, info = {}, type = "item", slot = 8, },
}

--------------------------
-- Shower 
--------------------------
Config.Shower = {
    Command = "shower", -- Command to have a bath on ocean
    Probability = 10, -- 1-10 | 5 = 50% -- Probability of player gaining smell after cooking
    WaitingTime = math.random(10000,25000), -- Waiting time until dirt appears on the player
    ProgBarTime = math.random(7500, 12500), -- Time it takes the player to bathe in the water/sea
    QtyGained = { -- Amount of dirt the player receives after cooking something
        Min = 1,
        Max = 5,
    },
}

--------------------------
-- Commands
--------------------------
Config.Commands = {
    ["Points"] = {
        Enable = true, -- Enable Command for checking points?
        Command = "cookingpoints" -- Command to check points available to cooking
    },
}

function CallCops()
    -- Your trigger event
end
PreviousInstallationNextConsumables

Last updated 1 year ago

🏕️
🗒️