In this guide we will explain how to install any mod purchased from us (and not) into your FiveM server!
With __resource.lua (fxmanifest.lua), client.lua & server.lua
- As with most resources they come from a rar or zip file, In these compressed files may be a folder or files. Most resource contents should look like the below image:
These files are the common files for resources, sometimes the names of client.lua and server.lua may be changed or you could have a config file.
So first you will want to have these files (in above image) in a folder, some may be inside a folder in the rar or zip file. For a basic script like this you should be able to rename it unless it contains java or (N)UI files.
- Upload this folder in to your resources folder on your server. In the image below I’m using a VPS server. In your server a common spot can be server-data/resources You should have the default resources the FiveM dev’s have made, if not go to the below link. Upload it in to your resources folder.
Data repository for CitizenFX servers. Contribute to citizenfx/cfx-server-data development by creating an account on GitHub.
- Now after you have uploaded the folder in to your resources folder now go back to the main server folder (should contain a cache folder and server.cfg ) Now open the server.cfg file. It should look like this:
PS; You should have ‘start hardcap’ and ‘start sessionmanager’ as well
Now at the bottom of the start’s add start FolderName (Replace FolderName with the folder name you have)
It should now look like this, check it out:
start mapmanager start chat start spawnmanager start sessionmanager start fivem start hardcap start scoreboard start FolderName
- Now restart your server and the resource will automatically start when the server starts.4a. If you don’t want it to automatically starts take this line out of the start list and you can start it via console, ingame or rcon using – start FolderName
Done! Wasn’t that hard, right? You can now experience your new FiveM mods on your server. Have fun with your new modifications on your machine!