Garry's Mod Wiki

IsConCommandBlocked

  boolean IsConCommandBlocked( string name )

Description

Determines whether or not the provided console command will be blocked if it's ran through Lua functions, such as RunConsoleCommand or Player:ConCommand.

For more info on blocked console commands, check out Blocked ConCommands.

This is used internally - although you're able to use it you probably shouldn't.

Arguments

1 string name
The console command to test.

Returns

1 boolean
Whether the command will be blocked.