> For the complete documentation index, see [llms.txt](https://mscripts.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mscripts.gitbook.io/docs/premium/scripts/camping/installation.md).

# Installation

## Items Installation

{% tabs %}
{% tab title="qb-core/shared/items.lua" %}

```lua
['prop_gazebo_01']       = { ['name'] = 'prop_gazebo_01',       ['label'] = 'Gazebo',             ['weight'] = 50, ['type'] = 'item', ['image'] = 'prop_gazebo_01.png',       ['unique'] = true,  ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['prop_gazebo_02']       = { ['name'] = 'prop_gazebo_02',       ['label'] = 'Gazebo',             ['weight'] = 50, ['type'] = 'item', ['image'] = 'prop_gazebo_02.png',       ['unique'] = true,  ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['prop_skid_tent_03']    = { ['name'] = 'prop_skid_tent_03',    ['label'] = 'Tent',               ['weight'] = 50, ['type'] = 'item', ['image'] = 'prop_skid_tent_03.png',    ['unique'] = true,  ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['prop_skid_tent_cloth'] = { ['name'] = 'prop_skid_tent_cloth', ['label'] = 'Tent',               ['weight'] = 50, ['type'] = 'item', ['image'] = 'prop_skid_tent_cloth.png', ['unique'] = true,  ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['prop_table_03b']       = { ['name'] = 'prop_table_03b',       ['label'] = 'Table',              ['weight'] = 50, ['type'] = 'item', ['image'] = 'prop_table_03b.png',       ['unique'] = true,  ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['prop_chair_08']        = { ['name'] = 'prop_chair_08',        ['label'] = 'Chair',              ['weight'] = 50, ['type'] = 'item', ['image'] = 'prop_chair_08.png',        ['unique'] = true,  ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['prop_beach_fire']      = { ['name'] = 'prop_beach_fire',      ['label'] = 'Bonfire',            ['weight'] = 50, ['type'] = 'item', ['image'] = 'prop_beach_fire.png',      ['unique'] = true,  ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['prop_weed_tub_01b']    = { ['name'] = 'prop_weed_tub_01b',    ['label'] = 'Box',                ['weight'] = 50, ['type'] = 'item', ['image'] = 'prop_weed_tub_01b.png',    ['unique'] = true,  ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },

['grilled_burger_meat']  = { ['name'] = 'grilled_burger_meat',  ['label'] = 'Grilled Burger',     ['weight'] = 50, ['type'] = 'item', ['image'] = 'grilled_burger_meat.png',  ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['grilled_meat']         = { ['name'] = 'grilled_meat',         ['label'] = 'Grilled Meat',       ['weight'] = 50, ['type'] = 'item', ['image'] = 'grilled_meat.png',         ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['grilled_fish']         = { ['name'] = 'grilled_fish',         ['label'] = 'Grilled Fish',       ['weight'] = 50, ['type'] = 'item', ['image'] = 'grilled_fish.png',         ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['grilled_bacon_eggs']   = { ['name'] = 'grilled_bacon_eggs',   ['label'] = 'Grilled Bacon & Eggs',['weight'] = 50, ['type'] = 'item', ['image'] = 'grilled_bacon_eggs.png',   ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },

['raw_burger']           = { ['name'] = 'raw_burger',           ['label'] = 'Raw Burger',         ['weight'] = 50, ['type'] = 'item', ['image'] = 'raw_burger.png',           ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['raw_meat']             = { ['name'] = 'raw_meat',             ['label'] = 'Raw Meat',           ['weight'] = 50, ['type'] = 'item', ['image'] = 'raw_meat.png',             ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['raw_fish']             = { ['name'] = 'raw_fish',             ['label'] = 'Raw Fish',           ['weight'] = 50, ['type'] = 'item', ['image'] = 'raw_fish.png',             ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['bacon_pieces']         = { ['name'] = 'bacon_pieces',         ['label'] = 'Bacon Pieces',       ['weight'] = 50, ['type'] = 'item', ['image'] = 'bacon_pieces.png',         ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },

['cowhide']              = { ['name'] = 'cowhide',              ['label'] = 'Cow Hide',           ['weight'] = 50, ['type'] = 'item', ['image'] = 'cowhide.png',              ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
['milk']                 = { ['name'] = 'milk',                 ['label'] = 'Milk',               ['weight'] = 50, ['type'] = 'item', ['image'] = 'milk.png',                 ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = '' },
```

{% endtab %}

{% tab title="ox\_inventory/data/items.lua" %}

```lua
["prop_gazebo_01"] = { label = "Gazebo", weight = 50, stack = false, close = true, description = "", client = { image = "prop_gazebo_01.png" }, },
["prop_gazebo_02"] = { label = "Gazebo", weight = 50, stack = false, close = true, description = "", client = { image = "prop_gazebo_02.png" }, },
["prop_skid_tent_03"] = { label = "Tent", weight = 50, stack = false, close = true, description = "", client = { image = "prop_skid_tent_03.png" }, },
["prop_skid_tent_cloth"] = { label = "Tent", weight = 50, stack = false, close = true, description = "", client = { image = "prop_skid_tent_cloth.png" }, },
["prop_table_03b"] = { label = "Table", weight = 50, stack = false, close = true, description = "", client = { image = "prop_table_03b.png" }, },
["prop_chair_08"] = { label = "Chair", weight = 50, stack = false, close = true, description = "", client = { image = "prop_chair_08.png" }, },
["prop_beach_fire"] = { label = "Bonfire", weight = 50, stack = false, close = true, description = "", client = { image = "prop_beach_fire.png" }, },
["prop_weed_tub_01b"] = { label = "Box", weight = 50, stack = false, close = true, description = "", client = { image = "prop_weed_tub_01b.png" }, },

["grilled_burger_meat"] = { label = "Grilled Burger", weight = 50, stack = true, close = true, description = "", client = { image = "grilled_burger_meat.png" }, },
["grilled_meat"] = { label = "Grilled Meat", weight = 50, stack = true, close = true, description = "", client = { image = "grilled_meat.png" }, },
["grilled_fish"] = { label = "Grilled Fish", weight = 50, stack = true, close = true, description = "", client = { image = "grilled_fish.png" }, },
["grilled_bacon_eggs"] = { label = "Grilled Bacon & Eggs", weight = 50, stack = true, close = true, description = "", client = { image = "grilled_bacon_eggs.png" }, },

["raw_burger"] = { label = "Raw Burger", weight = 50, stack = true, close = true, description = "", client = { image = "raw_burger.png" }, },
["raw_meat"] = { label = "Raw Meat", weight = 50, stack = true, close = true, description = "", client = { image = "raw_meat.png" }, },
["raw_fish"] = { label = "Raw Fish", weight = 50, stack = true, close = true, description = "", client = { image = "raw_fish.png" }, },
["bacon_pieces"] = { label = "Bacon Pieces", weight = 50, stack = true, close = true, description = "", client = { image = "bacon_pieces.png" }, },

["cowhide"] = { label = "Cow Hide", weight = 50, stack = true, close = true, description = "", client = { image = "cowhide.png" }, },
["milk"] = { label = "Milk", weight = 50, stack = true, close = true, description = "", client = { image = "milk.png" }, },
```

{% endtab %}
{% endtabs %}

## Database Installation

{% hint style="warning" %}
Before you install this database code, you have on option on config.lua to run this automatic.
{% endhint %}

```sql
CREATE TABLE IF NOT EXISTS `m_camping` (
  `id` varchar(255) NOT NULL,
  `owner_id` varchar(50) NOT NULL DEFAULT '',
  `coords` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`coords`)),
  `prop_name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
```
