Difference between revisions of "ClientCommands"

From GTA Connected
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 30: Line 30:
 
|None.
 
|None.
 
|Toggles the console shown/hidden.
 
|Toggles the console shown/hidden.
|-
 
|/cvar var value
 
|/cvar cv_chatscale 1.2
 
|None.
 
|Changes a client variable.
 
 
|-
 
|-
 
|/deleteotherplayers
 
|/deleteotherplayers
Line 113: Line 108:
 
|/refresh
 
|/refresh
 
|/refresh
 
|/refresh
|Disconnected from any server.
+
|If connected, server must set client as [[client.administrator|admin]]
 
|Refresh all resources.
 
|Refresh all resources.
 
|-
 
|-
 
|/restart resourceName
 
|/restart resourceName
 
|/restart lobby
 
|/restart lobby
|Disconnected from any server.
+
|If connected, server must set client as [[client.administrator|admin]]
 
|Restarts the resource.
 
|Restarts the resource.
 
|-
 
|-
Line 138: Line 133:
 
|/start resourceName
 
|/start resourceName
 
|/start lobby
 
|/start lobby
|Disconnected from any server.
+
|If connected, server must set client as [[client.administrator|admin]]
 
|Starts the resource.
 
|Starts the resource.
 
|-
 
|-
 
|/stop resourceName
 
|/stop resourceName
 
|/stop lobby
 
|/stop lobby
|Disconnected from any server.
+
|If connected, server must set client as [[client.administrator|admin]]
 
|Stops the resource.
 
|Stops the resource.
 
|-
 
|-
 
|/stopall
 
|/stopall
 
|/stopall
 
|/stopall
|Disconnected from any server.
+
|If connected, server must set client as [[client.administrator|admin]]
 
|Stops all resources.
 
|Stops all resources.
 
|-
 
|-

Latest revision as of 05:49, 12 February 2020

Summary

This is a list of built-in client commands that can be typed in-game in the chat box.
Some commands only work when not connected to a server.

Built-In Commands

Command Syntax Example Requirements Description
/cancelmission /cancelmission Disconnected from any server. Aborts the active mission.
/chatscale scale /chatscale 1.2 Disconnected from any server. Changes the text size for the chat box.
/connect host[:port] [password] /connect localhost None. Connects to a server.
/console /console None. Toggles the console shown/hidden.
/deleteotherplayers /deleteotherplayers Disconnected from any server. Deletes remote players from the game.
/disconnect /disconnect Connected to any server. Disconnects from the server.
/dumpdoc /dumpdoc Disconnected from any server. Dumps documentation to XML files for commands, defines, functions and events.
/dumpmodels /dumpmodels Disconnected from any server. Generates a list of model IDs used by the game and their types.
/exit /exit None. Closes the game. Equivalent to the /quit or /q commands.
/gamestats /gamestats None. Toggles game statistics shown/hidden.
/help /help Disconnected from any server. Shows a list of built-in commands in the chatbox.
/mission missionId /mission 150 Disconnected from any server. Starts a mission.
/multiplayerworld /multiplayerworld Disconnected from any server. Restart the game as multiplayer world.
/netstats /netstats Connected to any server. Toggles network statistics shown/hidden.
/q /q None. Closes the game. Equivalent to the /exit or /quit commands.
/quit /quit None. Closes the game. Equivalent to the /exit or /q commands.
/radio radioStationId /radio 5 Disconnected from any server. Changes the radio station.
/reconnect /reconnect Connected at least once since game launch. Reconnects to the last server connected to. Works when connected too.
/reenter /reenter Disconnected from any server. Restart the game.
/refresh /refresh If connected, server must set client as admin Refresh all resources.
/restart resourceName /restart lobby If connected, server must set client as admin Restarts the resource.
/save /save Disconnected from any server. Activates the save menu.
/say text /say testing 123 Connected to a server. Sends a chat message. Optional, as text not starting with a / also sends a chat message.
/setname name /setname Player1 Disconnected from any server. Sets your player name.
/start resourceName /start lobby If connected, server must set client as admin Starts the resource.
/stop resourceName /stop lobby If connected, server must set client as admin Stops the resource.
/stopall /stopall If connected, server must set client as admin Stops all resources.
/stopscript scriptName /stopscript shops Disconnected from any server. Stops a game script.