Player:ConCommand
Description
Runs the console command on the player. This does not work on bots.
If used clientside, always runs the command on the local player. You should use RunConsoleCommand in client realm instead.
If you wish to directly modify the movement input of bots, use GM:StartCommand instead.
Some commands/convars are blocked from being run/changed using this function, usually to prevent harm/annoyance to clients. For a list of blocked commands, see Blocked ConCommands.
Garry's Mod
Rust
Steamworks
Wiki Help