{"id":25538711,"url":"https://github.com/xan105/anylua","last_synced_at":"2026-01-31T22:30:16.557Z","repository":{"id":277637264,"uuid":"933060906","full_name":"xan105/AnyLua","owner":"xan105","description":"Lua Scripting in any game!","archived":false,"fork":false,"pushed_at":"2025-02-15T04:05:32.000Z","size":9511,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T05:17:52.829Z","etag":null,"topics":["lua","luajit"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xan105.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"xan105","custom":"https://www.paypal.me/xan105"}},"created_at":"2025-02-15T03:53:34.000Z","updated_at":"2025-02-15T04:05:38.000Z","dependencies_parsed_at":"2025-02-15T05:27:56.090Z","dependency_job_id":null,"html_url":"https://github.com/xan105/AnyLua","commit_stats":null,"previous_names":["xan105/anylua"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xan105%2FAnyLua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xan105%2FAnyLua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xan105%2FAnyLua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xan105%2FAnyLua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xan105","download_url":"https://codeload.github.com/xan105/AnyLua/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239781088,"owners_count":19695957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","luajit"],"created_at":"2025-02-20T05:23:47.305Z","updated_at":"2026-01-31T22:30:16.523Z","avatar_url":"https://github.com/xan105.png","language":"C++","readme":"About\n=====\n\nThis project adds a Lua Script engine to any process through DLL injection or sideloading.\nIt is based on Lua 5.1 (LuaJIT) extended with custom libraries to handle things like memory manipulation and classic Win32 APIs.\n\n🐧 This software has an emphasis on being compatible with Linux/Proton.\n\n💻 This software is for my own personal use but feel free to use it.\n\n\u003e [!IMPORTANT]  \n\u003e This project is in its early stages, it is a work in progress.\n\nExample\n=======\n\n//TODO\n\nUsage\n=====\n\nUpon injection the process will load `main.lua` relative to the process dir (**not** the current working dir).\u003cbr /\u003e\nThe path of the Lua script to load can be override with the env var `LUA_FILEPATH`.\n\n//TODO\n\n## A) DLL Sideloading\n\n//TODO\n\n## B) DLL Injection\n\n//TODO\n\nLUA Scripting\n=============\n\nStandard libs available are:\n\n  - Package\n  - Basic\n  - Table\n  - String\n  - Math\n  - bit (LuaJIT)\n  \nSome standard libraries are not enabled by design.\u003cbr /\u003e\nThe followings are exposed to the Lua VM, I might add more later on.\n  \n## 🌐 Globals\n\n### sleep(ms: number)\n\nSuspends the execution of the Lua engine until the time-out interval elapses.\n\n- `ms: number`\n  Time interval in milliseconds.\n\n```lua\nprint(\"HELLO\")\nsleep(1000)\nprint(\"WORLD\")\n```\n\n## 📦 Process\n\n```lua\nlocal process = require(\"process\")\n```\n\n### `pid: number`\n\nProcess pid.\n\n### `name: string`\n\nProcess executable name.\n\n### `dir: string`\n\nProcess executable dir. \n\n\u003e [!TIP]\n\u003e Not be confused with the process current working dir.\n\n### `exit(code: number)`\n\nEnds the process and all its threads.\n\n- `code: number`\n  The exit code for the process and all threads.\n\n## 📦 Memory\n\n```lua\nlocal memory = require(\"memory\")\n```","funding_links":["https://github.com/sponsors/xan105","https://www.paypal.me/xan105"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxan105%2Fanylua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxan105%2Fanylua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxan105%2Fanylua/lists"}