# Installation

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


---

# 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://rx56-store.gitbook.io/docs/paid-scripts/rx56-permvehicles/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.
