Jump to content

MTA Commands: Difference between revisions

From CIT Wiki
No edit summary
No edit summary
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 standard client and console commands used 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 MTA commands documented here and explains how to use them.


== Overview ==
== Overview ==


MTA commands are different from normal CIT commands.
To view a list of MTA commands:


In general:
* press <code>`</code> or <code>F8</code> to open the console
* type <code>help</code>
* press <code>Enter</code>


* CIT commands are usually typed in chat with <code>/</code>
== Command list ==
* 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 ==
{| class="wikitable"
! Command
! What it does
|-
| <code>help</code>
| Shows the MTA command list in the console
|-
| <code>/bind</code>
| [[Binds]] a key to a command
|-
| <code>/unbind &lt;key&gt; [command]</code>
| Removes a bind from a key, or all binds from that key
|-
| <code>/showchat</code>
| Hides the chatbox, and can also be used to show it again
|-
| <code>/serial</code>
| Shows your PC serial in the console panel
|}


To view the MTA command list:
== Viewing MTA commands ==


# press <code>F8</code>
To view the built-in MTA command list:
 
# press <code>`</code> or <code>F8</code>
# 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>.
== /bind ==


== MTA commands vs CIT commands ==
The overall usage of <code>/bind</code> is:


Use:
<code>/bind &lt;key&gt; [up/down] &lt;command&gt; &lt;further arguments to be input&gt;</code>


* <code>/help</code> to open the CIT command list GUI
=== Parts of /bind ===
* <code>F8</code> then <code>help</code> to view MTA commands


Standard client settings are changed in:
* '''Key''' is your keyboard key, such as <code>P</code>
* '''Up''' and '''down''' are the key states
* '''Command''' is the command you want to run
* '''Arguments''' are the extra values passed into that command


* <code>ESC &gt; Settings</code>
=== Key state ===


CIT-specific settings are changed in:
The optional key state values are:


* <code>/settings</code>
* <code>up</code>
* <code>down</code>


== Bind-related commands ==
Meaning:


The standard bind system can still be used for bindable commands.
* <code>up</code> means the bind triggers once the key goes up
* <code>down</code> means the bind triggers once the key goes down


To create a bind:
This is usually not required and is normally skipped.


<code>/bind &lt;key&gt; &lt;command&gt;</code>
=== Arguments ===


If you want the chatbox to open with a command ready to type, use:
Arguments pass information into the command.


<code>/bind &lt;key&gt; chatbox &lt;command&gt;</code>
Example:


Examples:
* if you use <code>/localchat Hello</code>, then <code>Hello</code> is the first argument


* <code>/bind i chatbox gc</code>
=== Using chatbox with /bind ===
* <code>/bind 5 gc Hello!</code>


To check [[binds]] on a key:
Add <code>chatbox</code> only when you want to type something yourself after opening the chatbox.


<code>/binds &lt;key&gt;</code>
Example:


To remove one bind from a key:
<code>/bind 5 chatbox gc</code>


<code>/unbind &lt;key&gt; &lt;command&gt;</code>
When you press <code>5</code>:


To remove all binds from a key:
* it opens the chatbox
* it opens the <code>/gc</code> command ready for you to type


<code>/unbind &lt;key&gt;</code>
Anything after <code>gc</code> is not taken into account when using the <code>chatbox</code> command.


=== Chatbox shortcut binds ===
=== Sending a command directly ===


Common chatbox shortcuts used with:
You can also use <code>/bind</code> to directly send a message or run a full command.


<code>/bind &lt;key&gt; chatbox &lt;shortcut&gt;</code>
Example:


include:
<code>/bind 5 gc Hello!</code>


* <code>localchat</code>
When you press <code>5</code>, it automatically triggers:
* <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 ==
<code>/gc Hello!</code>


=== /serial ===
== /unbind ==


Use:
Usage:


<code>/serial</code>
<code>/unbind &lt;key&gt; [command]</code>


to see your PC serial in MTA.
This removes a previously chosen bind.


=== /reconnect ===
If <code>command</code> is not specified:


Use:
* all binds on that key are removed


<code>/reconnect</code>
== /showchat ==


to reconnect. It is also used in the password recovery flow.
Usage:


== Changing standard controls ==
<code>/showchat</code>


Standard MTA controls like:
This hides the chatbox.


* movement
To bring the chatbox back:
* mouse controls
* joypad controls
* multiplayer client controls


should still be changed in:
* open <code>F8</code>
* type <code>showchat</code>


<code>ESC &gt; Settings &gt; Binds</code>
== /serial ==


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


== Command list ==
<code>/serial</code>


{| class="wikitable"
This shows your PC serial at the console panel from <code>F8</code>.
! Command
! Where it is used
! What it does
|-
| <code>help</code>
| <code>F8</code> console
| Shows the MTA command list. In <code>F8</code>, commands are typed without <code>/</code>.
|-
| <code>/serial</code>
| Chat
| Shows your PC serial in MTA.
|-
| <code>/reconnect</code>
| Chat
| Reconnects you and can be used during password recovery.
|-
| <code>/bind &lt;key&gt; &lt;command&gt;</code>
| Chat
| Binds a key to run a command directly.
|-
| <code>/bind &lt;key&gt; chatbox &lt;command&gt;</code>
| Chat
| Binds a key to open the chatbox with a command ready to type.
|-
| <code>/binds &lt;key&gt;</code>
| Chat
| Shows the binds currently set on that key.
|-
| <code>/unbind &lt;key&gt; &lt;command&gt;</code>
| Chat
| Removes one bind from that key.
|-
| <code>/unbind &lt;key&gt;</code>
| Chat
| 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>.
* MTA commands are separate from CIT commands
* This page only lists the individual MTA and client-side commands that are separately described here.
* the console command list is viewed with <code>help</code>
* Standard client settings and controls belong in <code>ESC &gt; Settings</code>, not in <code>/settings</code>.
* the commands above are the documented MTA commands listed here


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

Revision as of 23:16, 16 April 2026

MTA Commands

MTA Commands are standard client and console commands used in MTA:SA. They are separate from CIT server commands.

This page lists the MTA commands documented here and explains how to use them.

Overview

To view a list of MTA commands:

  • press ` or F8 to open the console
  • type help
  • press Enter

Command list

Command What it does
help Shows the MTA command list in the console
/bind Binds a key to a command
/unbind <key> [command] Removes a bind from a key, or all binds from that key
/showchat Hides the chatbox, and can also be used to show it again
/serial Shows your PC serial in the console panel

Viewing MTA commands

To view the built-in MTA command list:

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

/bind

The overall usage of /bind is:

/bind <key> [up/down] <command> <further arguments to be input>

Parts of /bind

  • Key is your keyboard key, such as P
  • Up and down are the key states
  • Command is the command you want to run
  • Arguments are the extra values passed into that command

Key state

The optional key state values are:

  • up
  • down

Meaning:

  • up means the bind triggers once the key goes up
  • down means the bind triggers once the key goes down

This is usually not required and is normally skipped.

Arguments

Arguments pass information into the command.

Example:

  • if you use /localchat Hello, then Hello is the first argument

Using chatbox with /bind

Add chatbox only when you want to type something yourself after opening the chatbox.

Example:

/bind 5 chatbox gc

When you press 5:

  • it opens the chatbox
  • it opens the /gc command ready for you to type

Anything after gc is not taken into account when using the chatbox command.

Sending a command directly

You can also use /bind to directly send a message or run a full command.

Example:

/bind 5 gc Hello!

When you press 5, it automatically triggers:

/gc Hello!

/unbind

Usage:

/unbind <key> [command]

This removes a previously chosen bind.

If command is not specified:

  • all binds on that key are removed

/showchat

Usage:

/showchat

This hides the chatbox.

To bring the chatbox back:

  • open F8
  • type showchat

/serial

Usage:

/serial

This shows your PC serial at the console panel from F8.

Notes

  • MTA commands are separate from CIT commands
  • the console command list is viewed with help
  • the commands above are the documented MTA commands listed here

See also