# Installation

## SQL

You can find `assets/sql/db.sql` file in assets folder, please insert that sql into your database. It will insert camping items into 'items' table.

## Config setup

Open the `config.lua` file.

### Framework

This script can be standalone, if needed, and we implemented two basic frameworks. You can change to your preferred framework like this:

```lua
Config.Framework = Frameworks.ESX -- for ESX
Config.Framework = Frameworks.QBCORE -- for QB
```

To implement your custom framework, take a look at the [Framework](https://documentation.rcore.cz/paid-resources/rcore_camping/framework) easy guide.

### Targeting system

This script can be standalone, if needed, and we implemented two basic integrations. You can change to your preferred targeting system like this:

```lua
Config.TargetingSystem = TargetingSystems.RCORE -- standalone
Config.TargetingSystem = TargetingSystems.QTARGET -- qtarget
Config.TargetingSystem = TargetingSystems.QBTARGET -- qb-target
```

If you use `QTARGET` or `QBTARGET` integration you need to have the selected script added to your server. If you renamed your script you also need to change it in `TargetingSystems`. For example if your qb-target script folder is called `qbtarget` you need to rename it also in `TargetingSystems`.

### OX Inventory

If you use ox\_inventory script and you are not able to use camping items from inventory check [OX Inventory section](https://documentation.rcore.cz/paid-resources/rcore_camping/ox_inventory)

### License type

Change `LicenseType` to the type of license you use to save your player data. We use this information to get the player's identifier.

```lua
Config.LicenseType = 'license' --license, steam, discord
```

### Language

To change the language of this script, you can simply change `Config.Locale` to any available language in `locales` folder.

### Consumable beer

Do not forget to add [beer](https://documentation.rcore.cz/paid-resources/rcore_camping/beer) into drunk system or any alternative system you use for eating/drinking.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.rcore.cz/paid-resources/rcore_camping/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
