• Gamemode Commands
    5 replies, posted
I was thinking about a small client lua file that can show you what commands have been added to console in a gamemode. For example, DarkRP and its rp_setmoney and commands like that aren't in console for sandbox. So if you put lets say "commanddetector" in console, it would show you the commands added to console for the gamemode you are playing. Not sure if this will get done, but its a nice suggestion for the future.
It can't be done as far as I know.
Would be a nice little file though.
So can anyone confirm the possibility of this?
[code]local RealConcommandAdd = concommand.Add local ConcommandList = {} function concommand.Add(name,func,acom) RealConcommandAdd(name,func,acom) if name then ConcommandList[name] = true end end local suffix = '' if CLIENT then suffix = '_cl' end concommand.Add('commanddetector' .. suffix, function(ply) for k,v in pairs(ConcommandList) do ply:PrintMessage(HUD_PRINTCONSOLE, k .. "\n") end end)[/code] Paste that into a file in autoexec. It's shitty code but it works so shutup.
Thank you so much!
Sorry, you need to Log In to post a reply to this thread.