Начинающий
- Статус
- Оффлайн
- Регистрация
- 29 Ноя 2022
- Сообщения
- 22
- Реакции
- 4
Hello everyone,
I'm releasing this simple Lua dumper script for GameSense — it prints out all the libraries you have access to, their functions, constants, and more. Maybe it's useless, maybe not, but it took me 5 minutes to put together and it can help if you want to explore what libs you’re subscribed to or just peek under the hood.
Feel free to use it or improve it however you want.
Usage:
Just paste this into your GameSense Lua script and check the console output.
It will list all libs, shared libs, and loaded modules you have access to.
Enjoy!
I'm releasing this simple Lua dumper script for GameSense — it prints out all the libraries you have access to, their functions, constants, and more. Maybe it's useless, maybe not, but it took me 5 minutes to put together and it can help if you want to explore what libs you’re subscribed to or just peek under the hood.
Feel free to use it or improve it however you want.
Usage:
Just paste this into your GameSense Lua script and check the console output.
It will list all libs, shared libs, and loaded modules you have access to.
code_language.lua:
local libs = {
"client", "ui", "render", "common", "global_vars", "panorama", "materials",
"gamesense/http", "json", "bit", "gamesense/base64", "gamesense/pui", "vector", "gamesense/images"
} -- lib examples, to print out!
local dumped = {}
local function dump_table(name, tbl)
for k, v in pairs(tbl) do
print(string.format(" • %s (%s)", k, type(v)))
end
print()
end
for _, name in ipairs(libs) do
local lib = _G[name] or package.loaded[name]
if type(lib) == "table" and not dumped[name] then
print("[LIB] " .. name)
dump_table(name, lib)
dumped[name] = true
end
end
local shared = _G.__shared
if type(shared) == "table" then
for name, lib in pairs(shared) do
if type(lib) == "table" and name ~= "gamesense/csgo_weapons" then
print("[SHARED] " .. name)
dump_table(name, lib)
dumped[name] = true
end
end
end
for name, mod in pairs(package.loaded) do
if type(mod) == "table" and not dumped[name] then
print("[MODULE] " .. name)
dump_table(name, mod)
dumped[name] = true
end
end
Enjoy!