Originally Posted by
tehhkp
1. Decrypt lua cache or detour when you join a server and save the files,
2. Detour RunConsoleCommand:
local oldrcc = RunConsoleCommand
function RunConsoleCommand(arg1,arg2,arg3,arg4,arg5)
if arg2 == nil then arg2 = "" end
if arg3 == nil then arg3 = "" end
if arg4 == nil then arg4 = "" end
if arg5 == nil then arg5 = "" end
print(arg1 .. " " .. arg2 .. " " .. arg3 .. " " .. arg4 .. " " .. arg5 .. " ") -- probably wont exceed 5 args
return oldrcc(arg1,arg2,arg3,arg4,arg5)
end
That should work^
Also for ConCommand()
_R.Player.ConCommand = function(arg) print(arg) end <-- should work
EDIT: Forgot to return the old concommand^ should be an easy fix
Do you realise this is retarded? (arg1,arg2,arg3,arg4,arg5)
Code:
local RCC = RunConsoleCommand
RunConsoleCommand = function(...)
print(...)
RCC(...)
end