Skip to content
RPScripts
RPScripts Docs

Install a FiveM resource

Unpack, place, configure and start a script, MLO or asset from RPScripts on your FiveM server, and check that it runs.

Start with the files listed in your account and the included readme. For an archive, extract it before installing anything. Scripts, maps (MLOs) and assets differ in what they contain, but a FiveM resource normally has its own folder in your server's resources directory, started from server.cfg.

Installing a complete server package? Use Install a server pack first. A pack's database and server config are not an update for an existing server.

Before you begin

Check the framework and the dependencies on the product page first. A QBCore script does not run on ESX without changes. See Check compatibility.

Back up your server

Copy server.cfg, the resource folders you will change and any shared item/job definitions; export your database. Store the backup outside resources. Try the installation on a separate test server and database before changing a server with players.

Unpack the zip and find the resource folder

A resource folder is the folder that contains fxmanifest.lua directly. Some downloads wrap it in an extra folder, or contain several resources (for example a script and its props). Open the zip and look for every fxmanifest.lua: each folder that holds one is a resource.

Files you do not install: readme files, preview images and .sql files. You import the SQL in step 4.

Copy the folder to resources

Move each resource folder into your server's resources directory. Folders with brackets, such as resources/[scripts]/, are only for grouping; the server finds resources inside them.

Keep the folder name the product documentation uses. Other resources often call a script by its folder name (exports['resource_name']), so a renamed folder can break them.

Import the SQL file, if there is one

Many scripts ship a .sql file that creates their tables or adds items. Use the file intended for your framework and a fresh installation, read it first, then import it into your test server database with HeidiSQL, phpMyAdmin or your host's panel. Existing installations need the creator's update instructions. Database precautions.

Install the dependencies and add items

The product page and the readme list what the resource needs, often ox_lib, oxmysql or a target and inventory resource. Install those first.

Scripts that use inventory items need them registered in your framework. Where that happens depends on the framework: QBCore, ESX, Qbox.

Configure it

Open config.lua (or the config folder) and set the framework, inventory, target and notification options to what your server uses. Many errors after a successful start come from a config that still points at a resource you do not run.

Start it from server.cfg

Add the resource after its dependencies. For a QBCore script that explicitly requires oxmysql and ox_lib, an example is:

server.cfg
ensure oxmysql
ensure ox_lib
ensure qb-core

ensure resource_name

Use your framework's start order and the resource readme. A standalone map does not need qb-core, ox_lib or a database unless its own instructions say so.

Restart the server. A full restart is safer than restart resource_name for new resources, because items, jobs and SQL changes are often only read at startup.

Check the console

Watch the server console (or txAdmin's live console) while the server starts. A clean start prints Started resource resource_name and no related errors. Then connect with a test player, inspect F8 for client errors, and exercise the feature: use an item, open its UI, enter the MLO or spawn the vehicle, as applicable. Reconnect and restart the server to check that saved data persists.

If it does not start, go to Startup errors.

Maps, vehicles and clothing

MLOs, vehicles and clothing packs commonly stream assets. Install each supplied resource and follow its manifest and readme; vehicles can also include handling or vehicle metadata, and clothing may need integration with your appearance resource. Keep the supplied files and folder names together.

Check Legacy or Enhanced compatibility. Test for missing textures, collision problems and conflicts with existing assets. More in the blog: install an MLO, install custom cars.