[ULib] RunConsoleCommand: Command is blocked! (exec)
RalphORama opened this issue · comments
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)
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
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 ***@***.***> wrote:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#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.
…
On Mon, Apr 20, 2020 at 19:29 Ralph Drake ***@***.***> 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
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAEBTZGTTRI6SNUP6EYFEDRNTLD7ANCNFSM4MM2PGZQ>
.