NIEUW 📢 Bespaar tot 30% op je eerste maand, tijdelijke aanbieding!

How to add resources and scripts to your FiveM server

FiveMUpdated Sep 24, 20263 min read

Everything on a FiveM server is a resource: maps, scripts, vehicles and whole frameworks. Adding one is always the same two steps, upload and ensure.


1. Upload the resource

  1. Stop the server in the Game Panel.
  2. Unpack the download on your PC. You want the folder that contains fxmanifest.lua, or __resource.lua on an older resource.
  3. Open the Files tab and upload that folder into resources. Use SFTP for large asset packs.
  4. Uploading a wrapper folder by mistake is the most common reason a resource never starts, so check that the manifest is directly inside the folder you uploaded.

2. Start it

  1. Open server.cfg.
  2. Add ensure resourcename, using the folder name exactly.
  3. Put it after any framework or library it depends on.
  4. Save and start the server.

3. Check the console

  • Each resource is listed as it starts.
  • A script error names the resource and the file, which is where to look first.
  • A resource that needs a database will fail until the database details are set. Create the database in the Databases section of the panel and put the connection string in your config as the resource's documentation describes.

4. Folders that start with a bracket

A folder named like [framework] groups resources. Ensuring the group name starts everything inside it. Keep the brackets exactly as the author intended, since renaming these folders breaks the load order.


5. Work in small steps

  • Add one resource at a time and restart in between.
  • If the server stops booting, comment out the last ensure line you added with a hash and start again.
  • Take a backup before adding a framework that changes your database.
  • Only run resources from sources you trust. A resource has full control of your server.

Open a ticket from Support in the Client Area with the console output if a resource will not start.

MAAK JE EIGEN GAMESERVER
KLAAR OM TE BEGINNEN?

Bespaar tot 30% op je nieuwe gameserver.
Premium prestaties, directe activatie en ongeëvenaarde betrouwbaarheid voor een betere prijs.

ONZE NIEUWSTE BLOGS