gmod_console_command
Executes a command in the Garry's Mod console on Windows by focusing the game window, opening the console, and pressing Enter. Use gmod_execute_rcon for server commands.
Instructions
[Windows only] [Experimental] Выполнить команду через консоль Garry's Mod. Фокусирует окно, открывает консоль (~), вводит команду, Enter, закрывает. ВАЖНО: может работать некорректно с русской раскладкой. Для серверных команд лучше использовать gmod_execute_rcon.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Консольная команда GMod. Примеры: 'connect 127.0.0.1:27015', 'disconnect', 'retry', 'map gm_flatgrass' |