Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

How to Install a FiveM Script (Resource) Step by Step

By Luke, RPScripts

Resource installation with server and backup drive — illustration
On this page

To install a FiveM script, copy its resource folder (the one holding fxmanifest.lua) into your server's resources directory, start its dependencies first, configure it, add an ensure line after them in server.cfg, and read the console. Back up first.

Tested on 23 November 2026 on RPScripts' private test server: FXServer build 35245 on Linux (artifact FXServer-master v1.0.0.35245 linux), the default cfx-server-data resources, no framework and no database. We installed two open-source resources from their CommunityOx GitHub releases: the library ox_lib 3.32.3 and ox_target 1.18.0, which declares dependency 'ox_lib'. Steps 3, 4, 5, 9, 10 and 11 were run there, plus step 2 for server.cfg and step 6 for ox_lib; every console line quoted in the “Tested” notes is copied from that run, while the screenshots come from an earlier run on the same build (17 October 2026). Steps 1, 7, 8 and 12 (framework, SQL, configuration), the database parts of steps 2 and 6 and the in-game checks were not run, because no game client joined; they follow the linked documentation, reviewed on 13 October 2026. The steps assume GTA V Legacy; Enhanced is only flagged in step 1. Anything written in monospace such as resource_name is a placeholder for your own value.

Step 1: Check the edition, framework and dependencies

Read the product page or readme and write down: the framework (ESX, QBCore, Qbox or standalone), the required libraries, the inventory and target resources, and the GTA V edition it supports. A framework badge does not tell you the edition.

The Cfx.re Legacy/Enhanced page describes an Enhanced server with differently named server files, a stream_enhanced folder for assets that differ from stream, and lists Asset Escrow as “Not implemented yet” for Enhanced. Ask the creator about the exact release if you run Enhanced. Background: FiveM Standard vs Enhanced: Which Version Should You Use?.

Success check: you can list framework, edition and dependencies from the creator's own text. If you cannot: stop and ask the seller before installing.

Step 2: Back up so you can roll back

Copy server.cfg, the resource folders you will change and any shared item or job files, and export the database. Try the install on a test server and test database first. See How to Back Up and Restore a FiveM Server.

Success check: you know where the copies are and which file you would restore first.

Step 3: Unpack and find the resource folder

Extract the archive. A resource is a folder with fxmanifest.lua directly inside it; the Cfx.re resources introduction says “Every resource is required to contain a resource manifest by the name of fxmanifest.lua”. One download can hold several resources, and a zip can add an extra wrapper folder.

Success check: every folder you will copy has fxmanifest.lua at its top level, not one folder deeper. Evidence if wrong: a folder listing showing where the manifest sits.

Download the intended build. Two documented examples say to use a release, not the repository's source archive: the QBCore docs say to use oxmysql's release build, and the ox_inventory docs say the UI must be bundled and recommend the pre-bundled release (ox_inventory.zip).

Tested: both release zips unpack to one folder (ox_lib/, ox_target/) with fxmanifest.lua directly inside, so they can be copied as they are. A folder without a manifest is not a resource: when we put a download into an extra folder, refresh printed Warning: mlo_download does not have a resource manifest (fxmanifest.lua), and ensure mlo_download answered Couldn't find resource mlo_download. The resource inside that folder was not found by its own name either.

Step 4: Put it in resources and keep the folder name

Move each resource folder into resources, or into a bracket folder such as resources/[scripts]. The Cfx.re server commands accept bracket names as categories, for example start [cars].

In the Cfx.re example tree the resource is named after its folder, so the folder name is the name you pass to ensure; scripts that depend on it typically refer to it by that name. The Cfx.re page says you are free to name folders as you wish, but renaming a purchased script is a risk RPScripts advises against unless the creator says to.

Success check: the path reads resources/[optional_group]/resource_name/fxmanifest.lua. On Linux, letter case matters.

FiveM resources folder structure with bracket category folders and a resource folder containing fxmanifest.lua
The resources folder of our test server: bracket folders such as [local] are categories, and rps_hello is a resource because fxmanifest.lua sits directly inside it. Tested on FXServer build 35245 (Linux), 2026-10-17.

Tested: the folder name is the resource name. We renamed ox_lib to ox_lib-main (the kind of name a GitHub source archive unpacks to) and restarted the server. The console printed Could not find dependency ox_lib for resource ox_target. and Couldn't start resource ox_target. Renaming the folder back fixed it. Rename or move resource folders only while the server is stopped: when we renamed it on the running server, ox_lib started with 14 could not find warnings, and ox_target failed after it.

Step 5: Read the manifest

Open fxmanifest.lua without changing it. The manifest reference lists fx_version and game (gta5 runs on FiveM, rdr3 on RedM), and says dependency “Requires the specified resource to load before the current resource.” Every file named in client_script, server_script, shared_script or files should exist in the folder. To write one yourself see How to Write and Check a FiveM fxmanifest.lua and the fxmanifest generator.

Success check: you can name each dependency and each listed file exists.

A map or MLO resource needs other manifest entries (this_is_a_map, a stream folder, sometimes data_file lines); see How to Install and Verify a FiveM MLO.

Step 6: Install and start the dependencies

DependencyWhy it mattersSource
oxmysqlDatabase access. Set mysql_connection_string with set before any resource starts, and start oxmysql at the top of the list.oxmysql docs
ox_libUsed through shared_scripts { '@ox_lib/init.lua' } in a resource's manifest, so the library must be installed.ox_lib docs
Frameworkes_extended, qb-core or qbx_core must be running before scripts that use them.See the framework table in step 12
Inventory and targetMust match the options in the script's config (for example ox_inventory versus qb-inventory).The script's readme

Listing every dependency in server.cfg yourself, in order, is RPScripts' precaution, not a documented requirement.

Success check: each dependency is installed and already runs on its own.

Step 7: Import the SQL carefully

Only some scripts ship a .sql file. Read it before running it: DROP TABLE, TRUNCATE, DELETE, REPLACE and ALTER TABLE can remove or change existing data, and CREATE TABLE IF NOT EXISTS does not check that an existing table has the right columns. A fresh-install file is not an update. Import into the database named in your connection string, on the test database first. Details and common errors: SQL files and database errors.

Qbox's installation page requires MariaDB 10.9.0 or newer, not MySQL. Check your own database engine against the framework's requirement before importing.

Success check: the import reports no errors and the expected tables exist. Evidence if it fails: the failing statement and the exact error, with passwords removed.

Step 8: Configure it

Edit config.lua (or the config folder) so framework, inventory, target and notification options point at resources you actually run. Register any items the script needs in your framework's item system. Per-framework notes are in the table in step 12.

Success check: every resource name in the config exists in your resources folder.

Step 9: Add the ensure line in the right order

# server.cfg (placeholders: use your own framework and resources)
set mysql_connection_string "..."   # your own value, keep it private
ensure oxmysql
ensure ox_lib
ensure your_framework
ensure your_inventory_and_target

ensure resource_name

The oxmysql docs say to add start oxmysql “to the top of your resource list” and the ox_inventory Qbox page says to start it “immediately after qbx_core”, so order matters. Your script goes after everything it depends on. Per-framework start order: QBCore, ESX, Qbox; general reference: Configure FiveM server.cfg and Verify Your Changes and the server.cfg generator. Comments in server.cfg begin with #, as in the QBCore template.

Success check: your line sits below each dependency's line.

FiveM server.cfg ensure lines with default resources first and custom resources below their dependencies
The ensure lines of the test server's server.cfg: the default resources first, then our test resources, each below the one it depends on. Tested on FXServer build 35245 (Linux), 2026-10-17.

Tested: with ensure ox_lib above ensure ox_target at the end of server.cfg, the restart printed Started resource ox_lib, then Started resource ox_target. FXServer also starts an installed dependency on its own: on the running server, ensure ox_target with ox_lib not yet started printed Started resource ox_lib before Started resource ox_target. That only works when the dependency's folder is in resources under its expected name, so keep listing dependencies above your script.

Step 10: Start it and check the result

The Cfx.re server commands page documents refresh, which rescans resources and loads manifests so new resources can be started, and ensure, which starts a resource or restarts it if it is running. In the server console run refresh, then ensure resource_name; restarting the server also loads it. After adding items, jobs or SQL, RPScripts suggests a full restart as a precaution (editorial advice, not a Cfx.re statement).

FiveM server console showing refresh finding a new resource and ensure starting it
refresh found the new folder (“Found 1 new resources”), then ensure rps_hello ran its server script and printed “Started resource rps_hello”. Lines starting with > are the commands we typed. Tested on FXServer build 35245 (Linux), 2026-10-17.

Tested: after copying the folders, refresh printed Found 3 new resources, and refreshed 0/22 resources. (two scripts and a map). Stopping a library also stops what depends on it: stop ox_lib printed Stopping resource ox_target before Stopping resource ox_lib, and a later ensure ox_lib started only ox_lib. Run ensure again for each dependent script, or restart the server. A Started resource line alone is not proof: when we renamed the folder on the running server, the console printed Failed to load script @ox_lib/init.lua. and SCRIPT ERROR: @ox_target/server/main.lua:1: attempt to index a nil value (global 'lib'), and only then Started resource ox_target. Read the lines above it.

  1. No error lines mention resource_name in the server console.
  2. Join with a test account and press F8: no error lines for the resource.
  3. Use the feature (open its menu, use the item, enter the map).
  4. Reconnect and restart once to confirm saved data survives.

Evidence to collect if any check fails: the first error line after startup (not the last), the resource name, your framework and its version, the FXServer artifact number, the edition, and the ensure block above and below your line. If it does not start, continue with FiveM Resource Won't Start: Fix Errors by Console Message.

Step 11: Roll back cleanly

Run stop resource_name, put # before its ensure line, then restore the config files and database from your step 2 backup. Keep the database export from step 2, because a partly imported SQL file is not undone by stopping the resource.

Tested: to undo our test we removed the test folders and the ensure lines and restarted; the console printed Found 22 resources. and started only the resources that ran before. The test server's server.cfg then matched its backup byte for byte (SHA-256).

Step 12: Framework differences

FrameworkCore resourceItems and dataSource
ESXes_extendedItems and jobs live in database tables unless you use ox_inventory (see RPScripts' ESX notes). ESX's troubleshooting page lists “Error ESX = nil” with the fix “update your es_extended to the latest version”.ESX docs
QBCoreqb-coreTemplate starts ensure qb-core, then ensure [qb] and [standalone].QBCore docs
Qboxqbx_coreUses ox_inventory: add setr inventory:framework "qbx" before resources start and start ox_inventory right after qbx_core.ox_inventory Qbox setup
StandalonenoneNeeds only what its readme names.Creator

A script made for one framework does not install on another by copying it; see Convert FiveM Scripts Between ESX, QBCore and Qbox. RPScripts sells scripts, so this category link is commercial: QBCore Scripts. The steps here apply to a resource from any source.

Escrow-protected resources

Resources protected by Cfx.re Asset Escrow usually contain a .fxap file; see What Is a .fxap File in a FiveM Resource?. Do not edit, merge or delete the protected files. Per the Cfx.re Asset Escrow docs, a server without the right entitlement cannot start the resource and prints “You lack the required entitlement” in the console; fixes are in How to Fix the FiveM Required Entitlement Error. The docs describe an escrow_ignore directive that lets a creator leave chosen files, such as a config, unprotected; edit only files the creator names. Seller docs report that corrupted file transfers break escrowed resources. JG Scripts says to upload the .zip as-is and extract it after transfer rather than transferring files one by one, and that FileZilla can corrupt files (try WinSCP); Lation says FileZilla frequently corrupts escrowed files and recommends WinSCP. That is vendor guidance, not a Cfx.re statement.

FAQ

Do I need to restart the server after adding a script?

Not always. refresh then ensure resource_name loads a new resource, per the Cfx.re docs. After adding items, jobs or SQL changes, a full restart is RPScripts' precaution.

Can I install a QBCore script on ESX or Qbox?

Not by copying alone. Check the product page for your framework; a script that calls another framework's inventory or core functions needs conversion or a bridge the creator documents.

RPScripts sells QBCore scripts such as LB Phone v2, Tuning System and izzy HUD v5. Check each listing’s framework build, included components and dependencies against your server; they were not tested together.

  • CodeWalker Guide: Download, Setup and Map Editing for FiveM

    CodeWalker Guide: Download, Setup and Map Editing for FiveM

    CodeWalker is a Windows tool for viewing GTA V archives and working with map data. Download it only from the official CodeWalker repository or the author's GTA5-Mods distribution . Do not use mirrors or repacked executables.

  • How to Migrate an ESX Server to QBCore

    How to Migrate an ESX Server to QBCore

    Direct answer: Migrating ESX to QBCore is a controlled rewrite and data migration, not a framework switch. Build a clean QBCore staging server, inventory every ESX dependency, define an explicit field-by-field data map, port resources against current APIs, rehearse rollback, and cut over only after referential and gameplay checks pass.

  • Create a RedM Server with FXServer and txAdmin

    Create a RedM Server with FXServer and txAdmin

    Create a RedM server with FXServer and txAdmin using a RedM-compatible recipe, then verify a RedM client can join before adding gameplay resources. FiveM and RedM share server tooling, but GTA V resources and game-build values are not interchangeable with Red Dead Redemption 2.