File permissions & write access
Many modern FiveM scripts by Hype Modding (such as hm_ELSPlus, hm_Notrufsaeulen or hm_Hospital) have built-in in-game editors or placers. For configurations, HUD layouts, vehicle adjustments, call box locations or beds to be saved directly in-game, the FiveM server process needs write permissions on the respective config/ or data/ folder.
Without write permissions, changes made in-game cannot be written permanently to the .json or .lua files and are lost after a server restart.
Ways to set write permissions
Section titled “Ways to set write permissions”Choose the method that fits your setup and your management tools:
WinSCP is one of the most popular SFTP tools on Windows for managing Linux servers.
-
Connect:
Open WinSCP and connect via SFTP with your server credentials. -
Find the folder:
In the remote directory, navigate to the script folder, e.g.:resources/[Scripts]/hm_ELSPlus/ -
Open properties:
Right-click theconfig/folder and choose Properties (or press F9). -
Enter the octal value:
In the Octal permissions field, enter0775(or0777).
(Alternatively: tick read, write and execute for owner and group). -
Apply recursively (VERY IMPORTANT):
At the very bottom, tick “Set group, owner and permissions recursively” (including all subfolders and files). -
Save:
Click OK. WinSCP now applies the permissions to the folder and all files inside it.
FileZilla is a widely used FTP/SFTP client for Windows, macOS and Linux.
-
Connect:
Connect to your server using the SFTP protocol. -
Open the directory:
On the right-hand side (server), navigate to your resource, e.g.:resources/[Scripts]/hm_ELSPlus/ -
Open file permissions:
Right-click theconfig/folder and choose File permissions…. -
Set the numeric value:
Enter775(or777) in the Numeric value text field. -
Include subdirectories (VERY IMPORTANT):
Enable the checkbox “Recurse into subdirectories” and choose “Apply to all files and directories”. -
Confirm:
Click OK to start.
If you log in to your Linux root/virtual server via SSH (e.g. with PuTTY or a terminal):
-
Go to the FiveM directory:
Navigate to the main folder of your FiveM server (where theresources/folder is). -
Grant permissions recursively:
Run the following command (adjust the path to your script):Terminal window chmod -R 775 resources/hm_ELSPlus/config/ -
Check the owner (optional):
If your FiveM server process runs as a separate user (e.g.fivem), make sure that user owns the files:Terminal window chown -R fivem:fivem resources/hm_ELSPlus/config/
If you run your FiveM server directly on a Windows server or your local machine:
-
Open Explorer:
Open the directoryresources\hm_ELSPlus\in Windows Explorer. -
Open properties:
Right-click theconfigfolder -> Properties. -
Edit security settings:
Click the Security tab and then the Edit… button. -
Select the user:
Select the user the FiveM server runs as (e.g. your Windows user,AdministratorsorEveryone). -
Allow write access:
Tick Full control (or at least Write and Read & execute) in the Allow column. -
Save:
Click Apply and then OK.
Common problems & solutions
Section titled “Common problems & solutions”Meaning of the permission values (chmod)
Section titled “Meaning of the permission values (chmod)”| Value | Meaning | Recommendation |
|---|---|---|
775 (rwxrwxr-x) | Owner and group may read, write and execute. Others may only read and execute. | Recommended for production servers. |
777 (rwxrwxrwx) | Every user on the system may read, write and execute. | Useful for quick testing when you have permission problems. |
755 (rwxr-xr-x) | Only the owner may write. | Default permissions; prevents writing if the server runs under a different group ID. |