Jump to content

MTA Commands: Difference between revisions

From CIT Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
= MTA Commands =
= MTA Commands =


'''MTA Commands''' are the standard client-side and console-related commands used in '''MTA:SA''', separate from CIT's server-specific command list.
'''MTA Commands''' are the built-in client and console commands in '''MTA:SA'''. They are separate from CIT server commands.


This page covers the MTA and client-side commands that are individually described on this wiki, and how to view the wider built-in MTA command list in game.
This page lists the commands shown by the in-game MTA console help screen.


== Overview ==
== Overview ==
MTA commands are different from normal CIT commands.
In general:
* CIT commands are usually typed in chat with <code>/</code>
* MTA console commands are viewed and used through <code>F8</code>
* standard client controls are mainly managed from <code>ESC &gt; Settings</code>
== How to view MTA commands ==


To view the MTA command list:
To view the MTA command list:


# press <code>F8</code>
# press <code>`</code> or <code>F8</code> to open the console
# type <code>help</code>
# type <code>help</code>
# press <code>Enter</code>
# press <code>Enter</code>


In the <code>F8</code> console, commands are typed without <code>/</code>.
These console commands are typed in the console.
 
== MTA commands vs CIT commands ==
 
Use:
 
* <code>/help</code> to open the CIT command list GUI
* <code>F8</code> then <code>help</code> to view MTA commands
 
Standard client settings are changed in:
 
* <code>ESC &gt; Settings</code>
 
CIT-specific settings are changed in:
 
* <code>/settings</code>
 
== Bind-related commands ==
 
The standard bind system can still be used for bindable commands.
 
To create a bind:
 
<code>/bind &lt;key&gt; &lt;command&gt;</code>
 
If you want the chatbox to open with a command ready to type, use:
 
<code>/bind &lt;key&gt; chatbox &lt;command&gt;</code>
 
Examples:
 
* <code>/bind i chatbox gc</code>
* <code>/bind 5 gc Hello!</code>
 
To check [[binds]] on a key:
 
<code>/binds &lt;key&gt;</code>
 
To remove one bind from a key:
 
<code>/unbind &lt;key&gt; &lt;command&gt;</code>
 
To remove all binds from a key:
 
<code>/unbind &lt;key&gt;</code>
 
=== Chatbox shortcut binds ===
 
Common chatbox shortcuts used with:
 
<code>/bind &lt;key&gt; chatbox &lt;shortcut&gt;</code>


include:
== Command List ==
 
* <code>localchat</code>
* <code>locf</code>
* <code>main</code>
* <code>fmsg</code>
* <code>gc</code>
* <code>sc</code>
* <code>uc</code>
* <code>cc</code>
* <code>groupnote</code>
* <code>ac</code>
* <code>e</code>
* <code>sup</code>
* <code>td</code>
 
== Client utility commands ==
 
=== /serial ===
 
Use:
 
<code>/serial</code>
 
to see your PC serial in MTA.
 
=== /reconnect ===
 
Use:
 
<code>/reconnect</code>
 
to reconnect. It is also used in the password recovery flow.
 
== Changing standard controls ==
 
Standard MTA controls like:
 
* movement
* mouse controls
* joypad controls
* multiplayer client controls
 
should still be changed in:
 
<code>ESC &gt; Settings &gt; Binds</code>
 
If a CIT script key gets unbound by mistake, reconnecting resets binds to default, and you can also fix standard controls there.
 
== Command list ==


{| class="wikitable"
{| class="wikitable"
! Command
! Command
! Where it is used
! What it does
! What it does
|-
|-
| <code>help</code>
| <code>help</code>
| <code>F8</code> console
| Shows the help screen
| Shows the MTA command list. In <code>F8</code>, commands are typed without <code>/</code>.
|-
| <code>exit</code>
| Exits the application
|-
| <code>quit</code>
| Exits the application
|-
| <code>ver</code>
| Shows the version
|-
|-
| <code>/serial</code>
| <code>time</code>
| Chat
| Shows the time
| Shows your PC serial in MTA.
|-
|-
| <code>/reconnect</code>
| <code>showhud</code>
| Chat
| Shows the HUD
| Reconnects you and can be used during password recovery.
|-
|-
| <code>/bind &lt;key&gt; &lt;command&gt;</code>
| <code>binds</code>
| Chat
| Shows all the [[binds]]
| Binds a key to run a command directly.
|-
|-
| <code>/bind &lt;key&gt; chatbox &lt;command&gt;</code>
| <code>serial</code>
| Chat
| Shows your serial
| Binds a key to open the chatbox with a command ready to type.
|-
| <code>connect</code>
| Connects to a server
|-
| <code>reconnect</code>
| Connects to a previous server
|-
| <code>bind</code>
| Binds a key
|-
| <code>unbind</code>
| Unbinds a key
|-
| <code>copygtacontrols</code>
| Copies the default GTA controls
|-
| <code>screenshot</code>
| Outputs a screenshot
|-
| <code>saveconfig</code>
| Immediately saves the config
|-
| <code>cleardebug</code>
| Clears the debug view
|-
| <code>chatscrollup</code>
| Scrolls the chatbox upwards
|-
| <code>chatscrolldown</code>
| Scrolls the chatbox downwards
|-
| <code>debugscrollup</code>
| Scrolls the debug view upwards
|-
| <code>debugscrolldown</code>
| Scrolls the debug view downwards
|-
| <code>test</code>
|
|-
| <code>showmemstat</code>
| Shows the memory statistics
|-
| <code>showframegraph</code>
| Shows the frame timing graph
|-
| <code>jinglebells</code>
|
|-
| <code>fakelag</code>
|
|-
| <code>reloadnews</code>
| For developers: reload news
|-
| <code>disconnect</code>
| Disconnects from the game
|-
| <code>shownametags</code>
| Shows the nametags
|-
| <code>showchat</code>
| Shows the chatbox
|-
| <code>shownetstat</code>
| Shows the network statistics
|-
| <code>chatbox</code>
| Opens the chat input
|-
| <code>voiceptt</code>
| Transmits voice to other players
|-
| <code>enter_passenger</code>
| Enters a car as passenger
|-
| <code>radio_next</code>
| Changes to the next radio channel
|-
| <code>radio_previous</code>
| Changes to the previous radio channel
|-
| <code>radar</code>
| Enables the player-map view
|-
| <code>radar_zoom_in</code>
| Zooms the player-map in
|-
| <code>radar_zoom_out</code>
| Zooms the player-map out
|-
| <code>radar_move_north</code>
| Moves the player-map north
|-
| <code>radar_move_south</code>
| Moves the player-map south
|-
| <code>radar_move_east</code>
| Moves the player-map east
|-
| <code>radar_move_west</code>
| Moves the player-map west
|-
| <code>radar_attach</code>
| Attaches the player-map
|-
| <code>radar_opacity_down</code>
| Reduces player-map opacity
|-
| <code>radar_opacity_up</code>
| Increases player-map opacity
|-
| <code>radar_help</code>
| Toggles player-map help text
|-
| <code>msg_target</code>
| Sends a message to the targetted player
|-
| <code>vehicle_next_weapon</code>
| Changes to the next weapon while in a [[Vehicles|vehicle]]
|-
| <code>vehicle_previous_weapon</code>
| Changes to the previous weapon while in a vehicle
|-
| <code>sinfo</code>
| Outputs info about the current server
|-
| <code>textscale</code>
| Defines the scale multiplier of all text displays
|-
| <code>showcol</code>
| Development mode: shows the colshapes
|-
| <code>showsound</code>
| Development mode: prints world sound IDs into the debug window
|}
 
== Syntax Notes ==
 
The help screen also shows extra syntax for some commands:
 
{| class="wikitable"
! Command
! Syntax shown
|-
|-
| <code>/binds &lt;key&gt;</code>
| <code>connect</code>
| Chat
| <code>connect (host port nick pass)</code>
| Shows the binds currently set on that key.
|-
|-
| <code>/unbind &lt;key&gt; &lt;command&gt;</code>
| <code>bind</code>
| Chat
| <code>bind (key control)</code>
| Removes one bind from that key.
|-
|-
| <code>/unbind &lt;key&gt;</code>
| <code>unbind</code>
| Chat
| <code>unbind (key)</code>
| Removes all binds from that key.
|}
|}


== Notes ==
== Notes ==


* The full built-in MTA command list is viewed from <code>F8</code> with <code>help</code>.
* These are the commands shown by the MTA console help screen.
* This page only lists the individual MTA and client-side commands that are separately described here.
* They are separate from CIT server commands.
* Standard client settings and controls belong in <code>ESC &gt; Settings</code>, not in <code>/settings</code>.
* Commands on this page are viewed through <code>F8</code> or <code>`</code>.


== See also ==
== See also ==
Line 174: Line 209:
* [[MTA Settings]]
* [[MTA Settings]]
* [[CIT Commands]]
* [[CIT Commands]]
* [[CIT Settings]]
* [[Chat Commands]]
* [[Chat Commands]]
* [[Commands]]

Latest revision as of 07:51, 18 April 2026

MTA Commands

MTA Commands are the built-in client and console commands in MTA:SA. They are separate from CIT server commands.

This page lists the commands shown by the in-game MTA console help screen.

Overview

To view the MTA command list:

  1. press ` or F8 to open the console
  2. type help
  3. press Enter

These console commands are typed in the console.

Command List

Command What it does
help Shows the help screen
exit Exits the application
quit Exits the application
ver Shows the version
time Shows the time
showhud Shows the HUD
binds Shows all the binds
serial Shows your serial
connect Connects to a server
reconnect Connects to a previous server
bind Binds a key
unbind Unbinds a key
copygtacontrols Copies the default GTA controls
screenshot Outputs a screenshot
saveconfig Immediately saves the config
cleardebug Clears the debug view
chatscrollup Scrolls the chatbox upwards
chatscrolldown Scrolls the chatbox downwards
debugscrollup Scrolls the debug view upwards
debugscrolldown Scrolls the debug view downwards
test
showmemstat Shows the memory statistics
showframegraph Shows the frame timing graph
jinglebells
fakelag
reloadnews For developers: reload news
disconnect Disconnects from the game
shownametags Shows the nametags
showchat Shows the chatbox
shownetstat Shows the network statistics
chatbox Opens the chat input
voiceptt Transmits voice to other players
enter_passenger Enters a car as passenger
radio_next Changes to the next radio channel
radio_previous Changes to the previous radio channel
radar Enables the player-map view
radar_zoom_in Zooms the player-map in
radar_zoom_out Zooms the player-map out
radar_move_north Moves the player-map north
radar_move_south Moves the player-map south
radar_move_east Moves the player-map east
radar_move_west Moves the player-map west
radar_attach Attaches the player-map
radar_opacity_down Reduces player-map opacity
radar_opacity_up Increases player-map opacity
radar_help Toggles player-map help text
msg_target Sends a message to the targetted player
vehicle_next_weapon Changes to the next weapon while in a vehicle
vehicle_previous_weapon Changes to the previous weapon while in a vehicle
sinfo Outputs info about the current server
textscale Defines the scale multiplier of all text displays
showcol Development mode: shows the colshapes
showsound Development mode: prints world sound IDs into the debug window

Syntax Notes

The help screen also shows extra syntax for some commands:

Command Syntax shown
connect connect (host port nick pass)
bind bind (key control)
unbind unbind (key)

Notes

  • These are the commands shown by the MTA console help screen.
  • They are separate from CIT server commands.
  • Commands on this page are viewed through F8 or `.

See also