Closed RalphORama closed 4 years ago
This is a limitation in gmod and why we created a command to execute configs.
On Mon, Apr 20, 2020 at 18:50 Ralph Drake notifications@github.com wrote:
Steps to reproduce
- Create a cfg file in garrysmod/cfg (i.e. ttt.cfg)
- In a Lua script, run the code RunConsoleCommand("exec", "ttt.cfg")
- 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)
- fn - addons/ttt_playercount_settings/lua/autorun/server/choose_config.lua:4
- unknown - lua/ulib/shared/hook.lua:109
Error(s) in player's console, if any
n/a Version
ULib v2.63w ULX v3.73w
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TeamUlysses/ulib/issues/61, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEBT2YIRN5D5K3XNTTTXDRNTGTLANCNFSM4MM2PGZQ .
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.
http://ulyssesmod.net/docs/files/lua/ulib/shared/util-lua.html#execFile
On Mon, Apr 20, 2020 at 19:29 Ralph Drake notifications@github.com wrote:
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.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/TeamUlysses/ulib/issues/61#issuecomment-616863472, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEBTZGTTRI6SNUP6EYFEDRNTLD7ANCNFSM4MM2PGZQ .
Steps to reproduce
garrysmod/cfg
(i.e.ttt.cfg
)RunConsoleCommand("exec", "ttt.cfg")
Expected behavior
The console command
exec ttt.cfg
should execute without Ulib interferenceActual behavior
Execution is blocked
Error(s) in server console, if any
Error(s) in player's console, if any
n/a
Version