Jump to content

MTA Commands: Difference between revisions

From CIT Wiki
No edit summary
No edit summary
Line 1: Line 1:
=== Useful MTA Commands ===
= MTA Commands =
To view a list of available MTA commands, press the '''`''' key or '''F8''' to open the console, then type '''help''' and press '''Enter'''.


Below is a list of some '''useful MTA commands''' along with their explanations:
'''MTA Commands''' are the standard client-side and console-related commands used in '''MTA:SA''', separate from CIT's server-specific command list.
----


==== /bind ====
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.


* '''Usage''': <code>/bind <key> [up/down] <command> <arguments></code>
== Overview ==
* The '''/bind''' command is used to bind a specific action to a keyboard key. Here's how it works:
** '''<key>''': Represents the keyboard key you want to bind, e.g., '''P'''.
** '''[up/down]''': Specifies the state of the key. '''Up''' means the action happens when the key is released, and '''Down''' means the action happens when the key is pressed down. This part is optional.
** '''<command>''': The MTA command you want to bind to the key. For example, '''chatbox''' will open the chatbox.
** '''<arguments>''': Information or text that will be entered into the command. For example, <code>/localchat Hello</code> will input "Hello" when used with the '''/bind''' command.  '''Example''':
** <code>/bind 5 chatbox gc</code> will open the '''/gc''' command for you to type when you press '''5'''.
** <code>/bind 5 gc Hello!</code> will automatically send '''/gc Hello!''' when you press '''5'''.


----
MTA commands are different from normal CIT commands.


==== /unbind <key> <command> ====
In general:


* '''Usage''': <code>/unbind <key> <command></code>
* CIT commands are usually typed in chat with <code>/</code>
* Removes a previously set bind. If no command is specified, it will unbind all commands associated with the given key.
* 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 ==


==== /showchat ====
To view the MTA command list:


* '''Usage''': <code>/showchat</code>
# press <code>F8</code>
* Hides the '''chatbox'''. To bring it back, open '''F8 (console)''' and type '''showchat'''.
# type <code>help</code>
# press <code>Enter</code>


----
In the <code>F8</code> console, commands are typed without <code>/</code>.


==== /serial ====
== MTA commands vs CIT commands ==


* '''Usage''': <code>/serial</code>
Use:
* Displays your '''PC serial''' in the console panel. This is helpful for debugging or identifying your computer's unique identifier.
 
----
* <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:
 
* <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 ==


=== Full List ===
{| class="wikitable"
{| class="wikitable"
!'''Command'''
! Command
!'''Description'''
! Where it is used
! What it does
|-
|-
|'''help'''
| <code>help</code>
|Displays the help screen.
| <code>F8</code> console
| Shows the MTA command list. In <code>F8</code>, commands are typed without <code>/</code>.
|-
|-
|'''exit'''
| <code>/serial</code>
|Exits the application.
| Chat
| Shows your PC serial in MTA.
|-
|-
|'''quit'''
| <code>/reconnect</code>
|Exits the application.
| Chat
| Reconnects you and can be used during password recovery.
|-
|-
|'''ver'''
| <code>/bind &lt;key&gt; &lt;command&gt;</code>
|Shows the version of MTA.
| Chat
| Binds a key to run a command directly.
|-
|-
|'''time'''
| <code>/bind &lt;key&gt; chatbox &lt;command&gt;</code>
|Displays the current in-game time.
| Chat
| Binds a key to open the chatbox with a command ready to type.
|-
|-
|'''showhud'''
| <code>/binds &lt;key&gt;</code>
|Toggles the '''HUD''' (Heads-Up Display).
| Chat
| Shows the binds currently set on that key.
|-
|-
|'''binds'''
| <code>/unbind &lt;key&gt; &lt;command&gt;</code>
|Shows all the keybinds you have set.
| Chat
| Removes one bind from that key.
|-
|-
|'''serial'''
| <code>/unbind &lt;key&gt;</code>
|Displays your '''PC serial''' in the console.
| Chat
|-
| Removes all binds from that key.
|'''connect'''
|Connects to a server (host port nick pass).
|-
|'''reconnect'''
|Reconnects to the previous server.
|-
|'''bind'''
|Binds a key to a specific command.
|-
|'''unbind'''
|Unbinds a key from a command.
|-
|'''copygtacontrols'''
|Copies the default '''GTA''' controls to your config.
|-
|'''screenshot'''
|Takes a screenshot and saves it.
|-
|'''saveconfig'''
|Immediately saves your current configuration.
|-
|'''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'''
|Placeholder for a test command.
|-
|'''showmemstat'''
|Displays memory statistics.
|-
|'''showframegraph'''
|Displays the frame timing graph.
|-
|'''jinglebells'''
|(Fun/Optional) Plays a jingle sound.
|-
|'''fakelag'''
|(For testing purposes) Applies lag to the player.
|-
|'''reloadnews'''
|For developers: reload news on the server.
|-
|'''disconnect'''
|Disconnects from the game.
|-
|'''shownametags'''
|Displays '''name tags''' for players.
|-
|'''showchat'''
|Shows the '''chatbox'''.
|-
|'''shownetstat'''
|Displays network statistics.
|-
|'''chatbox'''
|Opens the '''chat input''' box.
|-
|'''voiceptt'''
|Transmits '''voice''' to other players.
|-
|'''enter_passenger'''
|Enters a [[vehicle]] as a '''passenger'''.
|-
|'''radio_next'''
|Switches to the '''next radio channel'''.
|-
|'''radio_previous'''
|Switches to the '''previous radio channel'''.
|-
|'''radar'''
|Toggles 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''' to the screen.
|-
|'''radar_opacity_down'''
|Decreases '''player-map''' opacity.
|-
|'''radar_opacity_up'''
|Increases '''player-map''' opacity.
|-
|'''radar_help'''
|Toggles '''player-map''' help text.
|-
|'''msg_target'''
|Sends a message to the targeted 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'''
|Displays information about the current server.
|-
|'''textscale'''
|Defines the scale multiplier for all '''text''' displays.
|-
|'''showcol'''
|(Development mode) Displays the '''colshapes''' in the game.
|-
|'''showsound'''
|(Development mode) Prints '''world sound IDs''' into the debug window.
|}
|}
== Notes ==
* The full built-in MTA command list is viewed from <code>F8</code> with <code>help</code>.
* This page only lists the individual MTA and client-side commands that are separately described here.
* Standard client settings and controls belong in <code>ESC &gt; Settings</code>, not in <code>/settings</code>.
== See also ==
* [[MTA Settings]]
* [[CIT Commands]]
* [[CIT Settings]]
* [[Chat Commands]]
* [[Commands]]

Revision as of 23:14, 16 April 2026

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.

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.

Overview

MTA commands are different from normal CIT commands.

In general:

  • CIT commands are usually typed in chat with /
  • MTA console commands are viewed and used through F8
  • standard client controls are mainly managed from ESC > Settings

How to view MTA commands

To view the MTA command list:

  1. press F8
  2. type help
  3. press Enter

In the F8 console, commands are typed without /.

MTA commands vs CIT commands

Use:

  • /help to open the CIT command list GUI
  • F8 then help to view MTA commands

Standard client settings are changed in:

  • ESC > Settings

CIT-specific settings are changed in:

  • /settings

Bind-related commands

The standard bind system can still be used for bindable commands.

To create a bind:

/bind <key> <command>

If you want the chatbox to open with a command ready to type, use:

/bind <key> chatbox <command>

Examples:

  • /bind i chatbox gc
  • /bind 5 gc Hello!

To check binds on a key:

/binds <key>

To remove one bind from a key:

/unbind <key> <command>

To remove all binds from a key:

/unbind <key>

Chatbox shortcut binds

Common chatbox shortcuts used with:

/bind <key> chatbox <shortcut>

include:

  • localchat
  • locf
  • main
  • fmsg
  • gc
  • sc
  • uc
  • cc
  • groupnote
  • ac
  • e
  • sup
  • td

Client utility commands

/serial

Use:

/serial

to see your PC serial in MTA.

/reconnect

Use:

/reconnect

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:

ESC > Settings > Binds

If a CIT script key gets unbound by mistake, reconnecting resets binds to default, and you can also fix standard controls there.

Command list

Command Where it is used What it does
help F8 console Shows the MTA command list. In F8, commands are typed without /.
/serial Chat Shows your PC serial in MTA.
/reconnect Chat Reconnects you and can be used during password recovery.
/bind <key> <command> Chat Binds a key to run a command directly.
/bind <key> chatbox <command> Chat Binds a key to open the chatbox with a command ready to type.
/binds <key> Chat Shows the binds currently set on that key.
/unbind <key> <command> Chat Removes one bind from that key.
/unbind <key> Chat Removes all binds from that key.

Notes

  • The full built-in MTA command list is viewed from F8 with help.
  • This page only lists the individual MTA and client-side commands that are separately described here.
  • Standard client settings and controls belong in ESC > Settings, not in /settings.

See also