Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tbl = {
- ["cam"] = cam,
- ["concommand"] = concommand,
- ["cvars"] = cvars,
- ["debug"] = debug,
- ["draw"] = draw,
- ["file"] = file,
- ["hook"] = hook,
- ["math"] = math,
- ["net"] = net,
- ["render"] = render,
- ["string"] = string,
- ["surface"] = surface,
- ["table"] = table,
- ["timer"] = timer,
- }
- for name, funct in SortedPairs(tbl) do
- file.Append("debug.txt", "\t['" .. name .. "'] = {\n")
- for k, v in pairs(funct) do
- if funct and funct[k] and type(funct[k]) == "function" then
- local info = debug.getinfo(funct[k])
- if info and info.source and info.func then
- file.Append("debug.txt", "\t\t['" .. k .. "'] = { src = '" .. tostring(info.source) .. "', func = '" .. tostring(info.func) .. "' },\n")
- end
- end
- end
- file.Append("debug.txt", "\t},\n")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement