Jump to content

MTA Commands: Difference between revisions

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


'''MTA Commands''' are standard client and console commands used in '''MTA:SA'''. They are separate from CIT server 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 MTA commands documented here and explains how to use them.
This page lists the commands shown by the in-game MTA console help screen.


== Overview ==
== Overview ==


To view a list of MTA commands:
To view the MTA command list:


* press <code>`</code> or <code>F8</code> to open the console
# 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>
 
These console commands are typed in the console.


== Command list ==
== Command List ==


{| class="wikitable"
{| class="wikitable"
Line 20: Line 22:
|-
|-
| <code>help</code>
| <code>help</code>
| Shows the MTA command list in the console
| Shows the help screen
|-
| <code>exit</code>
| Exits the application
|-
| <code>quit</code>
| Exits the application
|-
| <code>ver</code>
| Shows the version
|-
| <code>time</code>
| Shows the time
|-
| <code>showhud</code>
| Shows the HUD
|-
| <code>binds</code>
| Shows all the [[binds]]
|-
| <code>serial</code>
| Shows your serial
|-
| <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>/bind</code>
| <code>radar_move_east</code>
| [[Binds]] a key to a command
| Moves the player-map east
|-
|-
| <code>/unbind &lt;key&gt; [command]</code>
| <code>radar_move_west</code>
| Removes a bind from a key, or all binds from that key
| Moves the player-map west
|-
|-
| <code>/showchat</code>
| <code>radar_attach</code>
| Hides the chatbox, and can also be used to show it again
| Attaches the player-map
|-
|-
| <code>/serial</code>
| <code>radar_opacity_down</code>
| Shows your PC serial in the console panel
| 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
|}
|}


== Viewing MTA commands ==
== Syntax Notes ==


To view the built-in MTA command list:
The help screen also shows extra syntax for some commands:


# press <code>`</code> or <code>F8</code>
{| class="wikitable"
# type <code>help</code>
! Command
# press <code>Enter</code>
! Syntax shown
 
|-
== /bind ==
| <code>connect</code>
 
| <code>connect (host port nick pass)</code>
The overall usage of <code>/bind</code> is:
|-
 
| <code>bind</code>
<code>/bind &lt;key&gt; [up/down] &lt;command&gt; &lt;further arguments to be input&gt;</code>
| <code>bind (key control)</code>
 
|-
=== Parts of /bind ===
| <code>unbind</code>
 
| <code>unbind (key)</code>
* '''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>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>
 
When you press <code>5</code>:
 
* it opens the chatbox
* it opens the <code>/gc</code> command ready for you to type
 
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>/unbind &lt;key&gt; [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
* These are the commands shown by the MTA console help screen.
* the console command list is viewed with <code>help</code>
* They are separate from CIT server commands.
* the commands above are the documented MTA commands listed here
* Commands on this page are viewed through <code>F8</code> or <code>`</code>.


== See also ==
== See also ==
Line 149: Line 210:
* [[CIT Commands]]
* [[CIT Commands]]
* [[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