Jump to content

MTA Commands: Difference between revisions

From CIT Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
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 built-in client and console commands in '''MTA:SA'''. They are separate from CIT server commands.
----


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


* '''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'''.


----
To view the MTA command list:


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


* '''Usage''': <code>/unbind <key> <command></code>
These console commands are typed in the console.
* Removes a previously set bind. If no command is specified, it will unbind all commands associated with the given key.


----
== Command List ==


==== /showchat ====
* '''Usage''': <code>/showchat</code>
* Hides the '''chatbox'''. To bring it back, open '''F8 (console)''' and type '''showchat'''.
----
==== /serial ====
* '''Usage''': <code>/serial</code>
* Displays your '''PC serial''' in the console panel. This is helpful for debugging or identifying your computer's unique identifier.
----
=== Full List ===
{| class="wikitable"
{| class="wikitable"
!'''Command'''
! Command
!'''Description'''
! What it does
|-
|-
|'''help'''
| <code>help</code>
|Displays the help screen.
| Shows the help screen
|-
|-
|'''exit'''
| <code>exit</code>
|Exits the application.
| Exits the application
|-
|-
|'''quit'''
| <code>quit</code>
|Exits the application.
| Exits the application
|-
|-
|'''ver'''
| <code>ver</code>
|Shows the version of MTA.
| Shows the version
|-
|-
|'''time'''
| <code>time</code>
|Displays the current in-game time.
| Shows the time
|-
|-
|'''showhud'''
| <code>showhud</code>
|Toggles the '''HUD''' (Heads-Up Display).
| Shows the HUD
|-
|-
|'''binds'''
| <code>binds</code>
|Shows all the keybinds you have set.
| Shows all the [[binds]]
|-
|-
|'''serial'''
| <code>serial</code>
|Displays your '''PC serial''' in the console.
| Shows your serial
|-
|-
|'''connect'''
| <code>connect</code>
|Connects to a server (host port nick pass).
| Connects to a server
|-
|-
|'''reconnect'''
| <code>reconnect</code>
|Reconnects to the previous server.
| Connects to a previous server
|-
|-
|'''bind'''
| <code>bind</code>
|Binds a key to a specific command.
| Binds a key
|-
|-
|'''unbind'''
| <code>unbind</code>
|Unbinds a key from a command.
| Unbinds a key
|-
|-
|'''copygtacontrols'''
| <code>copygtacontrols</code>
|Copies the default '''GTA''' controls to your config.
| Copies the default GTA controls
|-
|-
|'''screenshot'''
| <code>screenshot</code>
|Takes a screenshot and saves it.
| Outputs a screenshot
|-
|-
|'''saveconfig'''
| <code>saveconfig</code>
|Immediately saves your current configuration.
| Immediately saves the config
|-
|-
|'''cleardebug'''
| <code>cleardebug</code>
|Clears the debug view.
| Clears the debug view
|-
|-
|'''chatscrollup'''
| <code>chatscrollup</code>
|Scrolls the '''chatbox''' upwards.
| Scrolls the chatbox upwards
|-
|-
|'''chatscrolldown'''
| <code>chatscrolldown</code>
|Scrolls the '''chatbox''' downwards.
| Scrolls the chatbox downwards
|-
|-
|'''debugscrollup'''
| <code>debugscrollup</code>
|Scrolls the '''debug view''' upwards.
| Scrolls the debug view upwards
|-
|-
|'''debugscrolldown'''
| <code>debugscrolldown</code>
|Scrolls the '''debug view''' downwards.
| Scrolls the debug view downwards
|-
|-
|'''test'''
| <code>test</code>
|Placeholder for a test command.
|  
|-
|-
|'''showmemstat'''
| <code>showmemstat</code>
|Displays memory statistics.
| Shows the memory statistics
|-
|-
|'''showframegraph'''
| <code>showframegraph</code>
|Displays the frame timing graph.
| Shows the frame timing graph
|-
|-
|'''jinglebells'''
| <code>jinglebells</code>
|(Fun/Optional) Plays a jingle sound.
|  
|-
|-
|'''fakelag'''
| <code>fakelag</code>
|(For testing purposes) Applies lag to the player.
|  
|-
|-
|'''reloadnews'''
| <code>reloadnews</code>
|For developers: reload news on the server.
| For developers: reload news
|-
|-
|'''disconnect'''
| <code>disconnect</code>
|Disconnects from the game.
| Disconnects from the game
|-
|-
|'''shownametags'''
| <code>shownametags</code>
|Displays '''name tags''' for players.
| Shows the nametags
|-
|-
|'''showchat'''
| <code>showchat</code>
|Shows the '''chatbox'''.
| Shows the chatbox
|-
|-
|'''shownetstat'''
| <code>shownetstat</code>
|Displays network statistics.
| Shows the network statistics
|-
|-
|'''chatbox'''
| <code>chatbox</code>
|Opens the '''chat input''' box.
| Opens the chat input
|-
|-
|'''voiceptt'''
| <code>voiceptt</code>
|Transmits '''voice''' to other players.
| Transmits voice to other players
|-
|-
|'''enter_passenger'''
| <code>enter_passenger</code>
|Enters a [[vehicle]] as a '''passenger'''.
| Enters a car as passenger
|-
|-
|'''radio_next'''
| <code>radio_next</code>
|Switches to the '''next radio channel'''.
| Changes to the next radio channel
|-
|-
|'''radio_previous'''
| <code>radio_previous</code>
|Switches to the '''previous radio channel'''.
| Changes to the previous radio channel
|-
|-
|'''radar'''
| <code>radar</code>
|Toggles the '''player-map''' view.
| Enables the player-map view
|-
|-
|'''radar_zoom_in'''
| <code>radar_zoom_in</code>
|Zooms the '''player-map''' in.
| Zooms the player-map in
|-
|-
|'''radar_zoom_out'''
| <code>radar_zoom_out</code>
|Zooms the '''player-map''' out.
| Zooms the player-map out
|-
|-
|'''radar_move_north'''
| <code>radar_move_north</code>
|Moves the '''player-map''' north.
| Moves the player-map north
|-
|-
|'''radar_move_south'''
| <code>radar_move_south</code>
|Moves the '''player-map''' south.
| Moves the player-map south
|-
|-
|'''radar_move_east'''
| <code>radar_move_east</code>
|Moves the '''player-map''' east.
| Moves the player-map east
|-
|-
|'''radar_move_west'''
| <code>radar_move_west</code>
|Moves the '''player-map''' west.
| Moves the player-map west
|-
|-
|'''radar_attach'''
| <code>radar_attach</code>
|Attaches the '''player-map''' to the screen.
| Attaches the player-map
|-
|-
|'''radar_opacity_down'''
| <code>radar_opacity_down</code>
|Decreases '''player-map''' opacity.
| Reduces player-map opacity
|-
|-
|'''radar_opacity_up'''
| <code>radar_opacity_up</code>
|Increases '''player-map''' opacity.
| Increases player-map opacity
|-
|-
|'''radar_help'''
| <code>radar_help</code>
|Toggles '''player-map''' help text.
| Toggles player-map help text
|-
|-
|'''msg_target'''
| <code>msg_target</code>
|Sends a message to the targeted player.
| Sends a message to the targetted player
|-
|-
|'''vehicle_next_weapon'''
| <code>vehicle_next_weapon</code>
|Changes to the '''next weapon''' while in a vehicle.
| Changes to the next weapon while in a [[Vehicles|vehicle]]
|-
|-
|'''vehicle_previous_weapon'''
| <code>vehicle_previous_weapon</code>
|Changes to the '''previous weapon''' while in a vehicle.
| Changes to the previous weapon while in a vehicle
|-
|-
|'''sinfo'''
| <code>sinfo</code>
|Displays information about the current server.
| Outputs info about the current server
|-
|-
|'''textscale'''
| <code>textscale</code>
|Defines the scale multiplier for all '''text''' displays.
| Defines the scale multiplier of all text displays
|-
|-
|'''showcol'''
| <code>showcol</code>
|(Development mode) Displays the '''colshapes''' in the game.
| Development mode: shows the colshapes
|-
|-
|'''showsound'''
| <code>showsound</code>
|(Development mode) Prints '''world sound IDs''' into the debug window.
| 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>connect</code>
| <code>connect (host port nick pass)</code>
|-
| <code>bind</code>
| <code>bind (key control)</code>
|-
| <code>unbind</code>
| <code>unbind (key)</code>
|}
== 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 <code>F8</code> or <code>`</code>.
== See also ==
* [[MTA Settings]]
* [[CIT Commands]]
* [[Chat 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