ClientCommands: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 19: Line 19:
|/chatscale 1.2
|/chatscale 1.2
|Disconnected from any server.
|Disconnected from any server.
|Changes the text size for the chat box.
|Changes the text scale for the chat box. 1.0 is default scale.
|-
|-
|/connect host[:port] [password]
|/connect host[:port] [password]
Line 43: Line 43:
|/dumpdoc
|/dumpdoc
|/dumpdoc
|/dumpdoc
|Disconnected from any server.
|None.
|Dumps documentation to XML files for commands, defines, functions and events.
|Dumps client documentation to XML files for commands, defines, functions and events. See [[Dumpdoc|Dumpdoc]]
|-
|-
|/dumpmodels
|/dumpmodels
Line 60: Line 60:
|None.
|None.
|Toggles game statistics shown/hidden.
|Toggles game statistics shown/hidden.
|-
|/help
|/help
|Disconnected from any server.
|Shows a list of built-in commands in the chatbox.
|-
|-
|/mission missionId
|/mission missionId
Line 75: Line 70:
|Disconnected from any server.
|Disconnected from any server.
|Restart the game as multiplayer world.
|Restart the game as multiplayer world.
|-
|/netstats
|/netstats
|Connected to any server.
|Toggles network statistics shown/hidden.
|-
|-
|/q
|/q

Latest revision as of 17:36, 20 April 2023

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 scale for the chat box. 1.0 is default scale.
/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 None. Dumps client documentation to XML files for commands, defines, functions and events. See Dumpdoc
/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.
/mission missionId /mission 150 Disconnected from any server. Starts a mission.
/multiplayerworld /multiplayerworld Disconnected from any server. Restart the game as multiplayer world.
/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.