> For the complete documentation index, see [llms.txt](https://rx56-store.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://rx56-store.gitbook.io/docs/paid-scripts/rx56-permvehicles/installation.md).

# Installation

Step by step to install and configure the script according to your server's framework.

#### Step 1: Download & Place

1. Download the latest version of the script from your keymaster at [cfx.portal.re](https://keymaster.fivem.net/).
2. Unpack the script into your server's `resources` folder.
3. Add `ensure rx56_permvehicles` to your `server.cfg`.

#### Step 2: Framework Configuration (`config.lua`)

Open the `config.lua` file and adjust the settings based on your core:

**A) For ESX Legacy**

```lua
Config.AutomaticSave = true
Config.AutomaticSave_owned = true 
Config.AutomaticSave_owned_core = 'ESX' 
Config.GarageColumn.ESX = 'stored' -- Change if your garage uses a different column (e.g., 'state')
```

**B) For QBCore / Qbox**

```lua
Config.AutomaticSave = true
Config.AutomaticSave_owned = true 
Config.AutomaticSave_owned_core = 'QB' 
Config.GarageColumn.QB = 'state' -- Change if your garage uses a different column
```

**C) For Standalone Servers (No Framework)**

```lua
Config.AutomaticSave = false -- Or true, depending on your custom setup
Config.AutomaticSave_owned = false -- CRITICAL: Must be false for Standalone!
Config.SQLTableName = 'rx56_permvehicles' -- The script will use this custom table
```

**Step 3: Database Setup**

**🎉 Auto-Setup System:** You DO NOT need to run any .sql file manually!

\
Just start your server. The script features an automatic database builder that will automatically create the required tables (like rx56\_permvehicles) or add the necessary missing columns (pos, mods, hide, etc.) to your existing framework tables safely.
