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: | Commands | Using |
1 | connect <server> | Connects to a server using a given IP address and port, or URL. |
2 | disconnect | Disconnect you from the server you are connected to and returns to the main menu. |
3 | cl_drawfps <bool> | Enables or disables the client frames-per-second counter in the screen corner |
4 | cl_drawperf <bool> | Enables or disables showing performance metrics in the screen corner: |
5 | quit | Will force the client to close immediately. |
6 | quit [reason] | Will force the client to close immediately, specifying a quit reason to the server. |
7 | loadlevel <level_name> | Starts a local game loading a level (or commonly known as a map) from the name supplied |
8 | storymode | Starts FiveM story mode. |
9 | profile_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. |
10 | profile_musicVolume <0-10+> | Sets the music volume for the game when in single-player modes. |
11 | profile_musicVolumeInMp <0-10+> | Sets the music volume for the game when connected to a network game. |
Developer commands
No: | Commands | Using |
1 | cmdlist | The cmdlist command will list all the commands that are registered on the client (or server). |
2 | con_miniconChannels | To display console messages on screen without needing to open the client console. |
3 | developer | Enables some additional logging for developers. Typically not of use to a regular user. |
4 | devgui_cmd <path> <command> | Adds a command to the developer GUI shown above the console. |
5 | devgui_convar <path> <variable> | Adds a convar to the developer GUI shown above the console. |
6 | invoke-levelload | An alias for loadlevel see the loadlevel command for details. |
7 | list_aces | Lists all the aces (access control entries) in the console |
8 | list_principals | Lists all the principals in the system, it will print out a list of which principals are inherited by others. Example output: |
9 | localGame <name> | Loads a local resource from usermaps://resources/[name]in a single-player game. |
10 | localRestart | Restarts the localGame resource |
11 | modelviewer | Allows you to load in TXDs and drawables via an graphical interface. |
12 | net_maxPackets | A configuration flag to tell the client how many packets it should send at minimum per second. |
13 | net_printOwner <objectID> | Prints the owner of a network object ID. |
14 | net_showCommands | Internal dev tool. Not of use to a regular user unless asked to run. |
15 | net_showDrilldown | Internal dev tool. Not of use to a regular user unless asked to run. |
16 | net_showTime | Internal dev tool. Not of use to a regular user unless logging state-awareness data. |
17 | netEventLog | Enables a tool displaying all network event traffic. |
18 | net_statsFile | The net.statsFile is a command to store the metrics of the network usage/behaviour of the FiveM client. |
19 | netgraph | 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: |
20 | netobjviewer | Shows a list of current objects and nodes being synchronized over the network, when game state awareness is enabled. |
21 | netobjviewer_syncLog | Used when diagnosing discrepancies in written game state. Not of use to a regular user. |
22 | nui_devtools | Opens the NUI dev tools window from the game process. |
23 | onesync_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. |
24 | r_disableRendering | Used for supporting internal tooling. Not of use to a regular user, and can not be toggled at runtime. |
25 | resmon | 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. |
26 | save_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. |
27 | se_debug | The se__debug command enables verbose logging for security features (like the ACL). |
28 | set | Set a variable on the client. |
29 | seta | Set an archived variable on the client. |
30 | strdbg | 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. |
31 | strlist | strlist is a graphical interface showing the entries registered in the GTA streamer, and their current status. |
32 | strmem | Shows a listing of streaming memory used by specific streaming assets, as well as a global overview. |
33 | test_ace | Tests if a principal is allowed or denied access to a given object. |