# How To Install Resources on Your FiveM Server (/docs/fivem/install-resources)



FiveM uses a resource system for adding scripts, game modes, vehicles, maps, and other custom content to your server. Here is how to install them.

<div className="fd-steps">
  <div className="fd-step">
    Download the Resource [#1-download-the-resource]

    Download the resource you want to install. Popular sources for FiveM resources include:

    * [Cfx.re Forums](https://forum.cfx.re/c/development/releases/7)
    * [GitHub](https://github.com/)
    * Various FiveM resource communities

    Resources typically come as a `.zip` file containing a folder with scripts and configuration.
  </div>

  <div className="fd-step">
    Stop Your Server [#2-stop-your-server]

    Log in to the [XGamingServer Panel](https://panel.xgamingserver.com) and **Stop** your FiveM server.
  </div>

  <div className="fd-step">
    Upload the Resource [#3-upload-the-resource]

    In the sidebar, click **Files**. Navigate to the `resources/` directory (or a subfolder like `resources/[custom]/`). Upload and extract the resource folder.
  </div>

  <div className="fd-step">
    Add the Resource to server.cfg [#4-add-the-resource-to-servercfg]

    Open `server.cfg` and add an `ensure` line for the new resource:

    ```
    ensure my-new-resource
    ```

    The name should match the resource's folder name.
  </div>

  <div className="fd-step">
    Configure the Resource (If Needed) [#5-configure-the-resource-if-needed]

    Many resources include a `config.lua` or `config.json` file. Open it and adjust the settings according to the resource's documentation.
  </div>

  <div className="fd-step">
    Start Your Server [#6-start-your-server]

    Start the server and check the console for any errors related to the new resource.
  </div>
</div>

Organizing Resources [#organizing-resources]

It is good practice to organize your resources into folders:

```
resources/
  [core]/
    mapmanager/
    chat/
    sessionmanager/
  [vehicles]/
    custom-cars/
  [scripts]/
    esx_core/
    esx_ambulancejob/
  [maps]/
    custom-interior/
```

In your `server.cfg`, you can ensure entire folders:

```
ensure [core]
ensure [vehicles]
ensure [scripts]
```

> ⚠️ **Warning:** Only install resources from trusted sources. Malicious scripts can compromise your server or your players' experience.

> 📝 **Note:** Some resources depend on other resources (like ESX or QBCore frameworks). Make sure all dependencies are installed and loaded first in your `server.cfg`.

> 💡 **Tip:** If a resource is not working, check the server console for error messages. Common issues include missing dependencies, incorrect folder names, or syntax errors in configuration files.
