Installing Scripts on Your FiveM Server

Scripts (also called resources) add functionality to your FiveM server: jobs, vehicles, HUD elements, shops and more. This article explains how to install, configure and activate scripts.

Want your own FiveM server? At HostValues from €5.60 per month, online within minutes. View plans →

Where to find scripts

  • Cfx.re forums - The official FiveM community with free and paid scripts.
  • GitHub - Many open-source scripts are hosted on GitHub.
  • Tebex/FiveM Store - Paid premium scripts with support.

Installing a script

  1. Download the script and extract it.
  2. Upload the script folder to the resources/ folder on your server via SFTP or the panel.
  3. Open server.cfg and add ensure scriptname (replace "scriptname" with the folder name of the script).
  4. Restart the server or type ensure scriptname in the server console.

Configuration

Most scripts have a config file (config.lua, config.js or a .json). Adjust settings here such as prices, locations and permissions. Always read the script's documentation for specific options.

Common mistakes

  • Folder name with spaces or special characters - Rename the folder to something without spaces.
  • Wrong folder structure - The folder must directly contain a fxmanifest.lua or __resource.lua.
  • Missing dependencies - Some scripts require other scripts (e.g. ox_lib, oxmysql). Install those first.
  • Database not set up - Scripts with storage require a MySQL database. Import the included .sql file.

What is the difference between ensure and start in server.cfg?

ensure starts a resource if it is not running, or restarts it if it is already running. start only starts the resource if it is not yet active. ensure is the better choice in most cases.

How many scripts can my server handle?

That depends on the complexity. A server with 100+ lightweight scripts can run fine, while 20 heavy scripts may already cause problems. Monitor your CPU and memory usage after each addition.

Do I need to restart the server for every new script?

Not always. You can type ensure scriptname in the console to load a script live. However, some scripts require a full restart for database migrations or frameworks.

Tip: at HostValues you can rent a FiveM server and be online within minutes.

Get your own FiveM server

From €5.60 per month. Online within minutes, cancel monthly, DDoS protection included.

View plans Order now

New to HostValues? Use code WELKOM10 for 10% off your first order.


Still stuck? Open a support ticket, our team is happy to help.

Back to the knowledge base