HolyLib Wiki

ServerExecute

  HolyLib.ServerExecute()

Description

Forces all queried commands to be executed/processed.
A direct engine bind to IVEngineServer::ServerExecute

This function won't work if it's already active/running.
This means that using it inside a concommand callback will do nothing.

Example

Example usage of this function showing how it executes all queried commands
concommand.Add("example", function() print("Hello World") end) RunConsoleCommand("example") HolyLib.ServerExecute() print("Finished")
Hello World Finished