Garry's Mod Wiki

Revision Difference

Blocked_ConCommands#545810

<cat>Dev</cat> This is a list of all concommands and convars blacklisted from being ran or changed with <page>Global.RunConsoleCommand</page>, <page>game.ConsoleCommand</page> and <page>Player:ConCommand</page>. Server and clients can still run the commands normally from console. Certain console commands have been disabled for a variety of reasons, usually to prevent harm or annoyance to players, such as unbinding all their keys using `unbindall`. When you attempt to run <page>Global.RunConsoleCommand</page>, this error will be thrown in console: "RunConsoleCommand: Command is blocked! (`*command name*`)". Running <page>Player:ConCommand</page> will throw red text in console: "ConCommand blocked! (`*command name*`)". <note>This list was ripped from Garry's Mod dynamic libraries.</note> Name | Reason | -----|--------| | alias | Could alias commands without the client's consent | | askconnect_accept | Could accept a redirect request without the client wanting to be redirected | | bind | Could be used to rebind keys without the client's consent | | bindtoggle | Could be used to rebind keys without the client's consent | | buildcubemaps | Could rebuild the cubemaps on a server, which can cause errors | | cef_credits | | | cl_allowdownload | | | cl_allowupload | | | cl_chatfilters | | | cl_downloadfilter | | | cl_logofile | | | cl_mouseenable | Could enable or disable the mouse without the client wanting to | | cl_software_cursor | | | clear | Could clear the console without the client's consent | | con_enable | Could enable or disable the console | | con_logfile | | | crosshair | Could enable or disable the crosshair without the client's consent | | debug_dump | | | echo | Could be used to print fake console messages | | ent_fire | Could let clients manipulate entities more than expected | | ent_setname | | | exec | Could allow the client to execute malicious scripts | | exit | Could exit the client's game entirely | | gamemode_reload | | | gamemode_reload_cl | | | gameui_hide | Could hide the game UI when the client didn't request to | | gameui_preventescapetoshow | Could stop the client from opening the game UI | | gameui_show_dialog | | | hideconsole | Could hide the console when the client didn't request to | | host_writeconfig | Could save the current config settings to the registry (which could cause changes to be saved without the client wanting them) | | hud_fastswitch | | | incrementvar | Could change convar values (by increment them) | | lightprobe | Could be used to save two files without the client knowing (a cubemap file and a file indicating the local lighting) | | log | Could enable or disable logging without the client's consent | | lookspring | | | lookstrafe | | | lservercfgfile | | | lua_cookieclear | | | lua_error_url | | | lua_open | | | lua_openscript | | | lua_openscript_cl | Could allow the client to open malicious scripts | | lua_redownload | | | lua_reloadents | | | lua_reloadents_cl | | | lua_run | | | lua_run_cl | | | lua_showerrors_cl | | | lua_showerrors_sv | | | m_customaccel | | | m_customaccel_exponent | | | m_customaccel_scale | | | m_forward | | | m_mouseaccel1 | | | m_mouseaccel2 | | | m_mousespeed | | | m_pitch | | | m_side | | | m_yaw | | | mat_color_projection | | | mat_crosshair_explorer | Could be used to open Explorer without the client wanting to, which could exit out of the game | | mat_savechanges | Could save the current video config to the registry (which could cause changes to be saved without the client wanting them) | | mat_setvideomode | | | mat_texture_limit | Could limit the amount of texture memory available | | mat_viewportscale | Could scale down a client's viewport | | mat_viewportupscale | Could scale up a client's viewport | | menu_reload | Could force a reload of the Lua base menu (which causes the game to crash with a Lua panic error in my test) | | mp_flashlight | Could be used to enable or disable the flashlight for an entire server | | multvar | Could change convar values (by multiplying them) | | name | | | plugin_load | | | quit | Could exit the client's game entirely | | quti | Now-removed command that in the past could exit the client's game entirely | | r_aspect | | | rcon_address | | | rcon_password | | | sensitivity | Could change the client's mouse sensitivity without their knowledge. | | servercfgfile | | | snd_ducktovolume | | | snd_gain | Could change the sound gain without the client's consent | | snd_gain_max | Could change the maximum sound gain without the client's consent | | snd_gain_min | Could change the minimum sound gain without the client's consent | | snd_mixahead | | | snd_pitchquality | | | suitvolume | | | sv_cheats | | | sv_logfilename_format | | | sv_logsdir | | | test_randomchance | | | test_startscript | | | toggle | Could toggle convars without the client requesting to | | toggleconsole | Could stop the client from opening the console or open it when they didn't want to | | unbind | Could stop the client from being able to press anything | | unbindall | Could stop the client from being able to press anything | | voice_avggain | Could modify voice chat settings without the client wanting to | | voice_enable | Could enable or disable voice chat without the client wanting to | | voice_fadeouttime | Could modify voice chat settings without the client wanting to | | voice_forcemicrecord | Could modify voice chat settings without the client wanting to | | voice_inputfromfile | Could modify voice chat settings without the client wanting to | | voice_loopback | Could modify voice chat settings without the client wanting to | | voice_maxgain | Could modify voice chat settings without the client wanting to | | voice_modenable | Could modify voice chat settings without the client wanting to | | voice_overdrive | | | voice_scale | | | voice_recordtofile | | | volume | | | _restart | | makes the player's game crash⤶ | exit | | makes the player's game crash⤶ | con_filter_enable | | ⤶ | con_filter_text | |⤶