MTA Commands: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
= MTA Commands = | = MTA Commands = | ||
'''MTA Commands''' are | '''MTA Commands''' are standard client and console commands used in '''MTA:SA'''. They are separate from CIT server commands. | ||
This page | This page lists the MTA commands documented here and explains how to use them. | ||
== Overview == | == Overview == | ||
MTA commands | To view a list of MTA commands: | ||
* press <code>`</code> or <code>F8</code> to open the console | |||
* type <code>help</code> | |||
* press <code>Enter</code> | |||
== Command list == | |||
= | {| 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 <key> [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 | |||
|} | |||
== 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> | ||
== /bind == | |||
The overall usage of <code>/bind</code> is: | |||
<code>/bind <key> [up/down] <command> <further arguments to be input></code> | |||
=== Parts of /bind === | |||
* '''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 | |||
=== Key state === | |||
The optional key state values are: | |||
* <code>/ | * <code>up</code> | ||
* <code>down</code> | |||
Meaning: | |||
* <code>up</code> means the bind triggers once the key goes up | |||
* <code>down</code> 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 <code>/localchat Hello</code>, then <code>Hello</code> is the first argument | |||
=== Using chatbox with /bind === | |||
Add <code>chatbox</code> only when you want to type something yourself after opening the chatbox. | |||
Example: | |||
<code>/bind 5 chatbox gc</code> | |||
<code> | When you press <code>5</code>: | ||
* it opens the chatbox | |||
* it opens the <code>/gc</code> command ready for you to type | |||
<code>/ | Anything after <code>gc</code> is not taken into account when using the <code>chatbox</code> command. | ||
=== | === Sending a command directly === | ||
You can also use <code>/bind</code> to directly send a message or run a full command. | |||
Example: | |||
<code>/bind 5 gc Hello!</code> | |||
When you press <code>5</code>, it automatically triggers: | |||
<code>/gc Hello!</code> | |||
== /unbind == | |||
Usage: | |||
<code>/ | <code>/unbind <key> [command]</code> | ||
This removes a previously chosen bind. | |||
If <code>command</code> is not specified: | |||
* all binds on that key are removed | |||
== /showchat == | |||
Usage: | |||
<code>/showchat</code> | |||
This hides the chatbox. | |||
To bring the chatbox back: | |||
* open <code>F8</code> | |||
* type <code>showchat</code> | |||
== /serial == | |||
Usage: | |||
<code>/serial</code> | |||
This shows your PC serial at the console panel from <code>F8</code>. | |||
== Notes == | == Notes == | ||
* | * MTA commands are separate from CIT commands | ||
* | * the console command list is viewed with <code>help</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]] | ||
* [[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
`orF8to 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:
- press
`orF8 - type
help - 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:
updown
Meaning:
upmeans the bind triggers once the key goes updownmeans 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, thenHellois 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
/gccommand 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