concommand.Run

From Garry's Mod
Jump to: navigation, search
 concommand.Run( )

Contents

Description

This is an internal function or feature.
This means you will be able to use it, but you really shouldn't.

You might be looking for RunConsoleCommand or Player:ConCommand.
Used by the engine to run a console command's callback function, that was added with concommand.Add. An error is sent to the player's chat if no callback is found.

Arguments

Player ply

Player to run concommand on

Arguments

string cmd

Command name

Arguments

any args

Command arguments.

Can be table or string

Arguments

string argumentString

string of all arguments sent to the command

Returns

boolean

true if the console command with the given name exists, and false if it doesn't.
Personal tools
Navigation