> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_camping/installation.md).

# 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.
