List of clientside commands which can be useful to develop your server or debug resource issues. Additional commands may be added by resources; these are just the standard FiveM commands.
These commands can be used with the client console, which you can open by pressing F8. You can also install additional tools if preferred, like VConsole2. This allows you to use the client console outside of the game.
User commands can be used in the client console by anyone, and don't require additional developer mode settings to be enabled or usable.
Connects to a server using a given IP address and port, or URL.
Disconnect you from the server you are connected to and returns to the main menu.
Lists all configured bindings.
Binds an input to execute the specified command when pressed in-game.
bind keyboard F9 "say hi; wait 250; say bye"
bind above, but will only run if the specified resource is in use on a server.
Unbinds all commands bound to the specified input.
unbind keyboard F9
Enables or disables the client frames-per-second counter in the screen corner.
Enables or disables showing performance metrics in the screen corner:
|FPS||Frames Per Second: How many frames are drawn on screen each second.|
|Ping (ms)||How long it takes to get a response from the server (round trip time).|
|PL (%)||Packet Loss: How many packets failed to reach their destination in time.|
|CPU Usage (%)||How much of the CPU's computing power is being utilized.|
|GPU Usage (%)||How much of the GPU Engine's computing power is being utilized.|
|GPU Temp (°C)||The temperature of the GPU in Celsius.|
Will force the client to close immediately.
Will force the client to close immediately, specifying a quit reason to the server.
Starts a local game loading a level (or commonly known as a map) from the name supplied.
Starts FiveM story mode.
Sets the SFX volume for the game. This value has no upper limit, however the lower limit is 0, and 100% volume maps to 10.
Sets the music volume for the game when in single-player modes.
Sets the music volume for the game when connected to a network game.
Developer commands require the client to run in a special developer mode, or they'll show an error like
Access denied for command resmon.
This developer mode can be enabled by launching the FiveM/RedM client using the
+set moo 31337 argument (for example, by adding it to a shortcut), and is automatically enabled when running the client on a non-production build (such as Canary).
cmdlist command will list all the commands that are registered on the client (or server). It will also output the
variables that have been set by using the
You can use the
con_miniconChannels to display console messages on screen without needing to open the client console.
A channel name is the text inside the colored box next to a console message.
The message filter performs a full match of the pattern against the channel name, meaning it must match without any extra characters at the beginning or the end.
An asterisk (
*) can be used to specify a partial channel name, as a placeholder for 0-or-more characters.
Multiple patterns can be combined using either a space or a plus sign (
Enables some additional logging for developers. Typically not of use to a regular user.
Adds a command to the developer GUI shown above the console.
devgui_cmd "Launch/MP/Disconnect" "disconnect"
Adds a convar to the developer GUI shown above the console.
devgui_convar "Game/SFX Volume" profile_sfxVolume
An alias for
loadlevel, see the loadlevel command for details.
Lists all the aces (access control entries) in the console. It creates a list of the relationship between an principal and object and if they're allowed or not allowed to use it. Example output:
builtin.everyone -> command.freecam = ALLOW group.admin -> command.testbed = DENY <rest of the aces...>
Lists all the principals in the system, it will print out a list of which principals are inherited by others. Example output:
identifier.steam:110000111111111 <- group.admin identifier.steam:110000111111112 <- group.moderator <child> <- <parent>
On the left is the child node that belongs to the parent node on the right side.
Loads a local resource from
usermaps:/resources/[name] in a single-player game.
Restarts the localGame resource.
Allows you to load in TXDs and drawables via an graphical interface.
A configuration flag to tell the client how many packets it should send at minimum per second.
The default value is 50, minimum is 1 and maximum is 200 per second.
Prints the owner of a network object ID.
Internal dev tool. Not of use to a regular user unless asked to run.
Internal dev tool. Not of use to a regular user unless asked to run.
Internal dev tool. Not of use to a regular user unless logging state-awareness data.
Enables a tool displaying all network event traffic.
This command will show any incoming/outgoing event traffic. It shows the direction of the event (e.g. Server -> Client), the event name, and the size of the data sent (e.g. 2 bytes).
net_statsFile is a command to store the metrics of the network usage/behaviour of the FiveM client.
It should keep track of metrics like ping, received packets and bytes, sent packets and bytes and the amount of routing packages. All this information will be stored in a file, using a CSV format.
net_statsFile metrics.csv - this will create a CSV file called
metrics.csv in your
FiveM application data directory.
netgraph command will give you real time metrics about the FiveM client network usage.
The netgraph consists of a graph and basic information about the network:
|ping||How long it takes to get a response from the server (round trip time)|
|in||How many packets we received per second.|
|in (bytes)||How many bytes we received per second.|
|out||How much packets we have sent per second.|
|out (bytes)||How much bytes we have sent per second.|
|rt||Routing packets received/sent.|
|rd||Routing packet delay.|
The graph represents how many packets have been sent or received of a certain kind.
Shows a list of current objects and nodes being synchronized over the network, when game state awareness is enabled.
Used when diagnosing discrepancies in written game state. Not of use to a regular user.
Opens the NUI dev tools window from the game process.
Used to save client-side logs from the game state awareness subsystem. These files get large, so this command should be used sparingly.
onesync_logFile "1s_today.log"; wait 5000; onesync_logfile ""
Used for supporting internal tooling. Not of use to a regular user, and can not be toggled at runtime.
The resmon command will open the resource monitor. The resource monitor monitors the CPU usage and memory usage for each resource and shows this in a nice overview. Comes in handy when you encounter performance issues during gameplay.
Saves cache data for a specified resource to the CitizenFX directory in AppData. This is to be used for resources with a significant amount of collision or map files, to speed up initial loading for players.
save_gta_cache <resource name>
se_debug command enables verbose logging for security features (like the ACL).
Useful to see why some people do or don't have access to certain commands, example output:
TEST ACL [system.console -> command.resmon] ACE [system.console command] -> ALLOW TEST ACL [system.console -> command.resmon] -> ALLOW
Set a variable on the client.
set <key> <value>
set animal snail animal "animal" is "snail" default: "" type: string
Set an archived variable on the client.
The variables are saved in
seta <key> <value>
seta food escargot food "food" is "escargot" default: "" type: string
strdbg can be used to see what is currently being loaded in the GTA streamer, to potentially spot any issues with
streaming certain items, for example when the world stops loading.
strlist is a graphical interface showing the entries registered in the GTA streamer, and their current status.
Shows a listing of streaming memory used by specific streaming assets, as well as a global overview.
Tests if a principal is allowed or denied access to a given object.
test_ace <principal> <object>
test_ace group.admin command.adminstuff