> For the complete documentation index, see [llms.txt](https://tefox-scripts.gitbook.io/tefox-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tefox-scripts.gitbook.io/tefox-scripts-docs/tefox-scripts-documentation/tefox_dealership/installation.md). Agents can also search and read this documentation through its [MCP server](https://tefox-scripts.gitbook.io/tefox-scripts-docs/~gitbook/mcp).

# Installation

### <mark style="color:$primary;">**Step 1:**</mark>

Download the <mark style="color:$info;">`tefox_dealership`</mark> asset from your FiveM [<mark style="color:$primary;">Keymaster account</mark>](https://portal.cfx.re/assets) after purchase.

### <mark style="color:$primary;">**Step 2:**</mark>

Extract the downloaded folder and place it into your server's <mark style="color:yellow;">`[resources]`</mark> directory <mark style="color:$info;">(e.g.,</mark> <mark style="color:yellow;">`[resources]/[tefox]/tefox_dealership`</mark><mark style="color:$info;">).</mark>

### <mark style="color:$primary;">**Step 3:**</mark>

You must import the provided database file for the script to work. Navigate to the `sql` folder inside the resource <mark style="color:yellow;">(</mark><mark style="color:yellow;">`tefox_dealership/sql/tefox_dealership.sql`</mark><mark style="color:yellow;">)</mark> and import the <mark style="color:$info;">`tefox_dealership.sql`</mark> file into your server's database using your preferred management tool <mark style="color:green;">(like HeidiSQL or phpMyAdmin)</mark>.

### <mark style="color:$primary;">**Step 4:**</mark>

Open your <mark style="color:$info;">`server.cfg`</mark> file and add the following line to ensure the script starts with your server. Ensure it is placed *after* your framework and <mark style="color:$info;">`oxmysql`</mark> are started:

```lua
ensure tefox_dealership
```

### <mark style="color:$primary;">**Step 5:**</mark>

Start (or restart) your server. If the installation was successful, you will see a startup message in your server console from the TEFOX Auto Update Checker confirming the script version.
