Как исправить эти ошибки:
[DarkRP] RunConsoleCommand: Command is blocked! (voice_recordtofile)
1. v - gamemodes/darkrp/gamemode/cl_init.lua:272
2. unknown - addons/dash/lua/dash/libraries/hook.lua:36
[dash] addons/dash/lua/dash/libraries/hook.lua:36: addons/dash/lua/dash/libraries/debug.lua:97: table index is nil
1. v - [C]:-1
2. unknown - addons/dash/lua/dash/libraries/hook.lua:36
Строки этих кодов:
-- cl_init.lua:
hook.Add("InitPostEntity",'R8.Optimisation', function()
for k,v in pairs(opt) do
RunConsoleCommand(k,v[1])
end
end)
-- debug.lua:
function PrintTable(tbl, spaces, done)
local buffer = {}
local rbuf = {}
local maxwidth = 0
local spaces = spaces or 0
local done = done or {}
done[tbl] = true
for key,val in pairs(tbl) do
rbuf[#rbuf + 1] = key
buffer[#buffer + 1] = '['..DebugFixToString(key)..'] '
maxwidth = math.max(GetTextSize(buffer[#buffer]), maxwidth)
end
local str = string.rep(' ', spaces)
if(spaces == 0) then MsgN('\n') end
MsgC(typecol.etc, '{\n')
local tabbed = str..string.rep(' ', 4)
for i = 1, #buffer do
local overridesc = false
local key = rbuf[i]
local value = tbl[key]
MsgC(typecol.etc, tabbed..'[')
MsgC(unpack((DebugFixToStringColored(key))))
MsgC(typecol.etc, '] '..FixTabs(buffer[i], maxwidth), typecol.etc, '= ')
if(type(value) == 'table' and not IsColor(value) and not done[value]) then
PrintTable(tbl[key], spaces + 4, done)
else
local args, osc = DebugFixToStringColored(value, true)
overridesc = osc
MsgC(unpack(args))
end
if(not overridesc) then
MsgC(typecol.etc, ',')
end
MsgN''
end
MsgC(typecol.etc, str..'}')
if(spaces == 0) then
MsgN''
end
end