consoleCommand

Revision as of 23:46, 21 August 2025 by Vortrex (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.0.0, Client 1.0.0

void consoleCommand(string commandWithParameters)

The consoleCommand function is used to emulate typing a command manually into the console.

Parameters

1) string commandWithParameters A string containing a command with parameters.

Return

void This function doesn't return a value.

Notes

  • This is not an alternative to triggering command handlers or the command event. This is only for calling a command in the server or client console.
  • For security purposes, the client side of this function is only available when not connected to a server.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Server Related

        addCommandHandler
        consoleCommand
        hasCommandHandler
        removeCommandHandler


Client Related

        addCommandHandler
        consoleCommand
        hasCommandHandler
        removeCommandHandler