> For the complete documentation index, see [llms.txt](https://5scripts-1.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://5scripts-1.gitbook.io/docs/assets/5s_racing/install.md).

# Install

## 1. File Installation

Extract the downloaded files and copy all folders to the `resources/[5s]/` directory on your server:

* `5s_racing`
* `5s_lib`

## 2. Server.cfg Configuration

Add the following lines to your `server.cfg` file, keeping this load order:

```cfg
# 5s Racing - Required dependencies
ensure oxmysql
ensure ox_lib
ensure 5s_lib

# 5s Racing - Main resource
ensure 5s_racing
```

## 3. Database

No manual SQL import is required - the database structure is created and kept up to date automatically on the first start. See [Database](/docs/installation/database.md) for details.

{% hint style="info" %}
An optional `optional_ready_tracks.sql` file ships with the resource. Import it only if you want a set of ready-made tracks to start with - it is **not** required for the script to run.
{% endhint %}

## 4. Open the tablet

Players open the racing tablet with the command:

```
/racingtablet
```

You can also open it from a ped, a target zone or a usable item - see [Exports](/docs/assets/5s_racing/exports.md) for `openRacingTablet` / `toggleRacingTablet` and the server-side `openTabletForPlayer`.

## 5. Framework setup

If you use another framework, or want to change how money and admin permissions work, adapt the hooks in `server/editable/functions.lua` and `server/editable/permissions.lua` - see [Editable](/docs/assets/5s_racing/editable.md).
