Documentation
How to write SixM resources in Lua or JavaScript: the server and client API, events, exports, storage, natives, HTML interfaces, the servidor.cfg reference and the roleplay framework.
No release published yet. It will appear here with its SHA-256 fingerprint.
Getting started
IntroductionHow SixM is built: server, client, resources, launcher and panel, and where each one runs.Your first resourceA /hola command and a key that asks the server for a gift, in Lua and JavaScript, started live.Resources and manifestA resource's folder, recurso.lua or recurso.json, their fields and how it starts.
Scripting
Common APIWhat exists on both server and client, in Lua and JS: events, threads, waits, timers and logging.Server APIsixm.red, al_cliente, jugadores, echar, commands, storage and exports: what only exists on the server.Client APIWhat runs inside the game: al_servidor, yo, jugadores, natives, peds and objects, keys and interface.Events and networkingLocal events, client to server and server to client, and why every network event is declared with sixm.red.Exports and commandsFunctions a resource offers to others (also from Lua to JS) and chat commands starting with /.Storage (KVP)sixm.kvp stores values and tables per resource, on the server, across restarts.Nativesnat.NAME(...) calls any game function by its name: types, outputs and the ones that are blocked.HTML interfacesSixM's “NUI”: HTML/CSS/JS pages inside the game, the /__sixm.js bridge, focus and Esc.JavaScriptThe same API in QuickJS: await to wait, promises when creating entities, BigInt for models and what is missing.