Console commands

Commands are applied in the client console by open by pressing F8. You can also add additional tools if you like, such as VConsole2. This allows you to use the customer console out of the game.

User commands

No:CommandsUsing
1connect <server>Connects to a server using a given IP address and port, or URL.
2disconnectDisconnect you from the server you are connected to and returns to the main menu.
3cl_drawfps <bool>Enables or disables the client frames-per-second counter in the screen corner
4cl_drawperf <bool>Enables or disables showing performance metrics in the screen corner:
5quitWill force the client to close immediately.
6quit [reason]Will force the client to close immediately, specifying a quit reason to the server.
7loadlevel <level_name>Starts a local game loading a level (or commonly known as a map) from the name supplied
8storymodeStarts FiveM story mode.
9profile_sfxVolume <0-10+>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.
10profile_musicVolume <0-10+>
Sets the music volume for the game when in single-player modes.
11profile_musicVolumeInMp <0-10+>
Sets the music volume for the game when connected to a network game.

Developer commands

No:CommandsUsing
1cmdlistThe cmdlist command will list all the commands that are registered on the client (or server).
2con_miniconChannelsTo display console messages on screen without needing to open the client console.
3developerEnables some additional logging for developers. Typically not of use to a regular user.
4devgui_cmd <path> <command>
Adds a command to the developer GUI shown above the console.
5devgui_convar <path> <variable>
Adds a convar to the developer GUI shown above the console.
6invoke-levelload
An alias for loadlevel see the loadlevel command for details.
7list_aces
Lists all the aces (access control entries) in the console
8list_principalsLists all the principals in the system, it will print out a list of which principals are inherited by others. Example output:
9localGame <name>
Loads a local resource from usermaps://resources/[name]in a single-player game.
10localRestart
Restarts the localGame resource
11modelviewer
Allows you to load in TXDs and drawables via an graphical interface.
12net_maxPacketsA configuration flag to tell the client how many packets it should send at minimum per second.
13net_printOwner <objectID>
Prints the owner of a network object ID.
14net_showCommands
Internal dev tool. Not of use to a regular user unless asked to run.
15net_showDrilldownInternal dev tool. Not of use to a regular user unless asked to run.
16net_showTimeInternal dev tool. Not of use to a regular user unless logging state-awareness data.
17netEventLog
Enables a tool displaying all network event traffic.
18net_statsFileThe net.statsFile is a command to store the metrics of the network usage/behaviour of the FiveM client.
19netgraph
The netgtaph 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:
20netobjviewer
Shows a list of current objects and nodes being synchronized over the network, when game state awareness is enabled.
21netobjviewer_syncLogUsed when diagnosing discrepancies in written game state. Not of use to a regular user.
22nui_devtools
Opens the NUI dev tools window from the game process.
23onesync_logFile <filename>
Used to save client-side logs from the game state awareness subsystem. These files get large, so this command should be used sparingly.
24r_disableRendering
Used for supporting internal tooling. Not of use to a regular user, and can not be toggled at runtime.
25resmonThe 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.
26save_gta_cache
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.
27se_debugThe se__debug command enables verbose logging for security features (like the ACL).
28setSet a variable on the client.
29setaSet an archived variable on the client.
30strdbg
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.
31strliststrlist is a graphical interface showing the entries registered in the GTA streamer, and their current status.
32strmem
Shows a listing of streaming memory used by specific streaming assets, as well as a global overview.
33test_aceTests if a principal is allowed or denied access to a given object.

Leave a Reply

Your email address will not be published. Required fields are marked *