Guide

How to Install a FiveM Script or Resource

Install a FiveM script or resource: put its folder in resources, add an ensure line to server.cfg, import any SQL file, then restart and check the console.

Short answer

To install a FiveM script, extract its folder into the resources folder on your server, add an ensure line with the folder name to server.cfg, import any SQL file the script includes, then restart the server and check the console for errors.

What a resource is

A resource is a collection of files, such as client scripts, server scripts and streaming assets, that the server can start, stop and restart. Each resource folder needs a manifest named fxmanifest.lua at its top level. Older resources may use __resource.lua instead. The official docs say you are free to name the folder and the resource as you wish.

Where to put it

Place the whole resource folder inside resources, for example server-data/resources/my-script/. Make sure fxmanifest.lua sits directly inside that folder, not one level deeper inside a wrapper folder left over from the download. Folders in brackets, such as [scripts], are optional categories. The docs say they group resources that can be started together.

Add it to server.cfg

Open server.cfg and add a line with the folder name:

ensure my-script

The official server commands page says ensure starts a resource that is stopped and restarts one that is already running. List dependencies above the scripts that use them, so a framework or library loads before the scripts that need it. For more on how this file is read, see server.cfg explained. The docs also show start [category] to start every resource in a bracketed folder.

Import the SQL file

Third-party installation guides say that if a download includes a .sql file, you should import it into your database before starting the resource. They also advise installing required libraries, such as ox_lib or oxmysql, first. The FiveM docs do not cover this step, so follow the script's own README.

Restart and check the console

Restart the server, or run refresh and then ensure my-script in the server console. The docs describe refresh as rescanning the resources folder and loading all resource manifests. Then read the console output and look for errors that name your resource.

If a resource fails

Check these three things first:

  • Dependencies: confirm every library the script needs is installed and listed above it in server.cfg.
  • Folder name: the ensure name must match the folder name exactly.
  • Manifest: open fxmanifest.lua and check that the files it lists exist. See fxmanifest.lua explained.

Third-party guides say errors such as "Error loading script" usually come from missing dependencies, syntax errors or a wrong load order.

Only install trusted scripts

A resource runs code on your server with full access, so install only scripts from authors and sources you trust. Read the code of anything unfamiliar before you start it. If something looks wrong, see how to check for and remove a backdoor.

Frequently asked questions

Do I need to unzip a script before installing it?

Yes. A resource is a folder, so extract the download and place the folder, not the archive, inside resources.

Can I use start instead of ensure?

Both are listed on the official commands page. ensure starts a stopped resource and restarts a running one. start only starts a stopped resource. The forum guide below uses start.

Do I need to restart the whole server?

Not always. After adding a resource you can run refresh and then ensure <name> in the console. Restart the whole server when you change server.cfg or want a clean start to check for errors.

Sources

Last checked: 29 November 2026

Not confirmed: I did not test these steps on a live server. The SQL and dependency advice comes from third-party guides, not official FiveM docs. I did not check the txAdmin docs, and the exact console messages depend on each resource.

FiveM.tools was founded with sponsorship from Nyru.