For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

Follow these steps to install rcore_dealership for the first time.

๐Ÿ“‹ Prerequisites

Before installing, make sure your server has:

Requirement
Notes

Artifact 4752 or newer

Older artifacts can break the resource.

Database resource

oxmysql is recommended.

Framework

ESX, QBCore or QBox.

rcore_dealership ships with everything it needs. There is no separate assets resource to install.

๐Ÿ› ๏ธ First Time Installation

1

Download the resource

Download rcore_dealership from CFX Portal.

2

Move the folder

Move the rcore_dealership folder into your server ๐Ÿ“resources folder.

๐Ÿ“ server
โ””โ”€โ”€ ๐Ÿ“ resources
    โ”œโ”€โ”€ ๐Ÿ“ rcore_dealership
    โ””โ”€โ”€ ๐Ÿ“ other resources
3

Ensure the resource

Add the resource to server.cfg after your framework, database, and target resources.

ensure rcore_dealership
4

Seed the vehicles

Start the server once. The script creates its database tables automatically.

After the tables are created, run this in the server console:

dealership_seed_vehicles

This imports every vanilla vehicle into the database and calculates a price for each one. See the Vehicles config for how prices are generated.

5

Load a map preset (optional)

If you use a supported map, load its dealership preset from the server console. See the Presets page for the available maps and commands.

6

Configure the script

Join the server and open the admin tablet:

/dealershipadmin

Use the tablet to place dealerships, set prices, and manage everything else in-game.

๐Ÿ—„๏ธ Database

rcore_dealership creates its own database tables automatically on startup. You do not need to import an SQL file manually.

Vehicles are not inserted until you run dealership_seed_vehicles from the server console.

๐Ÿž Debug

If something does not work, set Config.Debug = true in config.lua to print extra information to the client (F8) and server console. Include those logs when opening a support ticket.

Last updated