> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wasabihosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Install FiveM Resources - Scripts, Maps & Vehicles

> Install scripts, maps, and vehicle resources on your FiveM server hosting at Wasabi Hosting - folder structure, fxmanifest.lua, and load order explained.

Resources are how you add everything to a FiveM server: jobs, vehicles, MLO interiors, HUDs, minigames, and entire frameworks. Installing one is simple (upload it, register it in `server.cfg`, restart), but getting the structure and start order right is what separates a stable server from one that floods the console with errors. This guide covers the whole process.

## How the resources Folder Works

All resources live in the `resources` folder of your server. Two structural rules matter:

* **Category folders use square brackets.** A folder named `[qb]`, `[maps]`, or `[standalone]` is not a resource itself: it's a category that FXServer scans for resources inside it. You can nest categories to keep things tidy.
* **Every resource needs an `fxmanifest.lua`.** This manifest tells the server what scripts and files the resource contains. A folder without one (or the legacy `__resource.lua`) is not a valid resource.

```
resources/
├── [core]/
│   ├── qb-core/
│   │   └── fxmanifest.lua
│   └── oxmysql/
│       └── fxmanifest.lua
├── [jobs]/
│   └── qb-police/
│       └── fxmanifest.lua
└── [maps]/
    └── custom-pd-mlo/
        └── fxmanifest.lua
```

> [!WARNING]
>
> The resource name is the folder that **directly contains** `fxmanifest.lua`. If you unzip a download and get `coolscript-main/coolscript/fxmanifest.lua`, upload the inner `coolscript` folder, not the wrapper. Keep resource names lowercase and **without spaces**.

## Installing a Resource

**1. Download from a trusted source**

The safest places to find resources are the [Cfx.re forum Releases section](https://forum.cfx.re/c/development/releases) and **GitHub** repositories linked from it. Avoid resold or "leaked" scripts, because they frequently contain backdoors that hand strangers admin access to your server.

**2. Upload to the resources folder**

Open the **File Manager** in the [Wasabi Hosting Game Panel](https://panel.wasabihosting.com) and upload the resource folder into `resources` (or a `[category]` inside it). For large resources like MLOs and vehicle packs, [SFTP is faster](https://docs.wasabihosting.com/server/file-management.md), and you can drag entire folders across.

**3. Register it in server.cfg**

Add a line to your [server.cfg](https://docs.wasabihosting.com/games/fivem/server-cfg.md):

```bash theme={null}
ensure coolscript
```

`ensure` starts the resource at boot (and restarts it if it's already running). You reference the folder name only, never the category, so `ensure coolscript`, not `ensure [standalone]/coolscript`.

**4. Restart and check the console**

Restart the server, then watch the live console. A healthy start looks like `Started resource coolscript`. Red error lines mean something is wrong; see troubleshooting below.

## Start Order and Dependencies

Resources start in the order of their `ensure` lines in `server.cfg`, top to bottom. Most script errors on fresh servers come from wrong ordering:

```bash theme={null}
# 1. Database connector first
ensure oxmysql

# 2. Framework core next
ensure qb-core

# 3. Framework modules and everything else after
ensure qb-police
ensure coolscript
```

Many resources also declare a `dependency` in their `fxmanifest.lua`, so read each resource's README, since some require specific libraries (e.g. `ox_lib`) to be started first.

## Framework Resources vs. Standalone

* **Framework resources** are built for ESX, QBCore, or Qbox and call into the framework's core (`es_extended`, `qb-core`). They only work if the matching framework is installed and started first, so a QBCore job script will not run on an ESX server.
* **Standalone resources** work on any server without a framework. Releases usually state "standalone" explicitly.

Always check which framework (and version) a resource targets before installing it.

## Troubleshooting

> [accordion] Couldn't find resource X
>
> The folder name doesn't match your `ensure` line, the resource is nested one folder too deep, or it's missing `fxmanifest.lua`. Verify the path in the File Manager.

> [accordion] Script errors mentioning nil values or missing exports
>
> A dependency isn't started, or it starts after this resource. Move the dependency's `ensure` line higher in server.cfg, and confirm the resource matches your framework.

> [accordion] Resource starts but nothing happens in-game
>
> Check the resource's config file (usually `config.lua`), since many scripts ship disabled or with placeholder job names/coordinates. Also check the F8 client console for client-side errors.

> [accordion] Server got slower after adding resources
>
> Every resource costs performance. Use the `resmon` command in the F8 console (as admin) to spot resources with high ms usage, and remove or replace the heavy ones.

> [!TIP]
>
> Take a [backup](https://docs.wasabihosting.com/server/backups.md) before installing a batch of new resources, because rolling back is much faster than untangling a broken load order.

## Next Steps

> [card] [server.cfg Explained](https://docs.wasabihosting.com/games/fivem/server-cfg.md)
>
> Understand the file where all your ensure lines live.

> [card] [Add Admins](https://docs.wasabihosting.com/games/fivem/add-admins.md)
>
> Grant yourself permissions to use admin-only resources.

> [card] [Room for more scripts](https://wasabihosting.com/game-servers/fivem)
>
> Big resource collections love fast disks and CPUs, so run FiveM hosting from **€4.80/month** on NVMe and Ryzen hardware at Wasabi Hosting.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.