Skip to main content

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)

Archived Guide

This document has been archived. Documents are archived if they are no longer relevant, incorrect or up to date. It has been archived for the following reasons:

Reason: The method of realization is for an outdated ESX version. This approach cannot be used for the current ESX version, as the structure has changed.

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.