TeamUlysses / ulib

ULib: A Lua library for more rapid development on Garry's Mod servers

Home Page:http://ulyssesmod.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ULib] RunConsoleCommand: Command is blocked! (exec)

RalphORama opened this issue · comments

commented

Steps to reproduce

  1. Create a cfg file in garrysmod/cfg (i.e. ttt.cfg)
  2. In a Lua script, run the code RunConsoleCommand("exec", "ttt.cfg")
  3. Error appears in console (see "Error(s) in server console" section)

Expected behavior

The console command exec ttt.cfg should execute without Ulib interference

Actual behavior

Execution is blocked

Error(s) in server console, if any

[ULib] RunConsoleCommand: Command is blocked! (exec)

  1. fn - addons/ttt_playercount_settings/lua/autorun/server/choose_config.lua:4
   2. unknown - lua/ulib/shared/hook.lua:109

Error(s) in player's console, if any

n/a

Version

ULib v2.63w
ULX v3.73w
commented

This is a limitation in gmod and why we created a command to execute configs.

What is the command / Lua call? I'm paging through the Ulib documentation but don't see it.