Obtaining server stuff
so is there some type script I could use in a garrys mod server that could either, download some server side lua files, or reply with some type of extra information able to get an advantage of a script.
or can I log what console commands I send when I press E on things or buy stuff, and get a list of all those commands.
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