AL Loader
Lua scripts for ReSA Multiplayer
AL Loader (Alyn Lua Loader) is ReSA's own Lua script loader. It runs LuaJIT scripts inside the game on Android, iOS and PC: chat commands, on-screen windows, overlays and helpers for SA-MP and open.mp servers. One script runs the same on every platform.
- Android
- iOS
- PC
- LuaJIT · Lua 5.1 + ffi + bit
mods/AL Loader/scripts/hello.lua
lua
script_name("Hello")
function main()
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("hello", function(arg)
sampAddChatMessage("Hello from AL Loader!", -1)
end)
wait(-1)
endFolders
Where scripts live
Everything sits in <game files>/mods/AL Loader/ inside the game files. Manage it from the launcher: Files screen, Mods tab.
| Folder | What goes there |
|---|---|
| scripts/ | Your scripts. Every .lua and .luac file here starts with the game. |
| lib/ | Bundled libraries (mimgui, samp.events, inicfg, ...). Replaced on updates, so do not edit them. |
| config/ | Settings files that scripts save. Created the first time a script saves something. |
| logs/ | alloader.log: what the loader did and every script error, with the line number. |
A .lua file placed directly in mods/AL Loader/ instead of scripts/ is not loaded. The launcher offers to move it for you.
Reference
API reference
Generated from the loader's own sources: the same reference the launcher carries. The reference text itself is in English.
Loading the reference…
