FiveM: Disable inventory (F2)
This guide was created with the following products:
(Details may vary with products from different providers but the main concepts remain the same)
Connect to FTP
Before we can deactivate the inventory, the Access via FTP must be set up.
After this has been set up, you can now connect and open the server folder:
Makig the Changes
Now we open the server-data/resources/[esx]
path, here we find an es_extended folder:
In this folder we now open the config.lua
file.
After we have opened this file in a text editor, we look for the following code:
Config.EnableDefaultInventory = true -- Display the default Inventory ( F2 )
Here we replace this with:
Config.EnableDefaultInventory = false
Now we can save the file and restart the server, after we have joined the server, the inventory can no longer be opened.