Repository navigation
Releases
SixM v0.2.1
Caution
SixM is discontinued (2026-11-28) because Rockstar does not allow it (Mod Guidelines). No further releases or security fixes. Do not run it on a public server.
Changed
- Resource file APIs reject symbolic links, device names, and paths that
would leave the resource directory on Linux or Windows. SaveResourceFilerefuses to overwrite resource manifests (fxmanifest.lua,
__resource.lua) and script files (.lua,.js), and limits writes to
4 MiB per file (plus a 16 MiB per-resource quota on clients).- Key-value storage (
KvpStore) caps each resource namespace at 16 MiB of live
entries. PerformHttpRequestpins DNS resolution and refuses loopback, link-local,
and private IP targets (including across redirects) unless the console-only
sv_httpAllowPrivateconvar is set totrueor1, and strips sensitive
headers on cross-origin redirects.- Security-critical and bootstrap convars (
rcon_password,
sv_httpAllowPrivate,sv_httpEnabled,sv_exposePlayerIdentifiers,
sixm_identityFile,sixm_resourcesPath,sixm_kvpPath,
endpoint_add_udp) are console-only, scriptSetConvar*writes are bounded
to 256-byte names and 64 KiB values, and resources without read permission
cannot overwrite restricted convars.
Added
add_convar_permission <resource> read <convar>,
remove_convar_permission <resource> read <convar>, and
list_convar_permissionsrestrict and inspect access to plain server convars
across getters, setters, and change listeners.
Fixed
- With port
0, the server can try another system-assigned game port when
the HTTP listener cannot bind the same port.
SixM v0.2.0
Caution
SixM is discontinued (2026-11-28) because Rockstar does not allow it (Mod Guidelines). No further releases or security fixes. Do not run it on a public server.
The client and server now use protocol 14. Upgrade both together.
Added
-
Frame and per-resource profiling with
profiler record [frames],
profiler stop,profiler status, and Chrome Trace export via
profiler saveJSON <path>. -
Authenticated remote console on
POST /rconwith a console-only
rcon_password, per-address failure lockout, and JSON command output. -
Console chat in the example server, usable with
say <message>from the
server or a connected headless client. -
Release archive smoke tests on Linux and Windows that start the extracted
binaries and verify a chat round trip over a pinned connection. -
FiveM scripting compatibility (
PROTOCOL_VERSION14):- Lua compile-time backtick JOAAT hash literals (
`adder`) with comment/string awareness and line-number preservation. quat(w, x, y, z)(Value::Quat) across Lua, JavaScript, exports/state bags/network, plusGetEntityQuaternionandSetEntityQuaternion.- Convar change listeners (
AddConvarChangeListenerwith*/?glob filtering andRemoveConvarChangeListener) on server and client. - CFX and OneSync natives on Lua & JS:
GetRegisteredCommands,StartResource/StopResource(server, ACE-gated viaresource.<caller>),GetEntityScript,NetworkGetFirstEntityOwner,SetEntityDistanceCullingRadius,GetPlayerLastMsg,GetNumPlayerTokens, andGetPlayerToken.
- Lua compile-time backtick JOAAT hash literals (
Changed
- Lua resources have a 64 MiB VM heap limit and an instruction budget for
each callback or task resume. The server and client only run.luaand
.jsresource scripts, and Lua script files are loaded as text. - JavaScript disables all dynamic function constructors. Manifest evaluation
also caps the number and combined size of the directives it records.
SixM v0.1.0
Caution
SixM is discontinued (2026-11-28) because Rockstar does not allow it (Mod Guidelines). No further releases or security fixes. Do not run it on a public server.
First release. There is no GTA VI game client yet (waiting on a PC release);
the dedicated server, Lua 5.4 and JavaScript scripting runtimes, HTTP/JSON
endpoints, networking, persistence, routing buckets, and headless/simulated
client (SimAdapter) are complete.
Added
-
Game adapter contract (
sixm-core::adapter:GameAdapter,MirrorChange,
AdapterError,AdapterSink,NativeRegistry), adapter native installation
andCitizen.InvokeNative(plus globalInvokeNativein JS) on client
runtimes when an adapter is attached,ClientRuntimetick/mirror hooks, and
built-in Phase 1SimAdapter(--simCLI flag insixm-client) with
GetEntitySpeed,TaskGoStraightToCoord, andGetSimEntityCoords. -
JavaScript scripting runtime (
sixm-js) backed by QuickJS (rquickjs),
supporting.jsscripts inserver_scripts,client_scripts, and
shared_scriptsalongside.lua(including mixed Lua/JS resources):
setTick/clearTick,setTimeout/clearTimeout,setInterval/clearInterval,
asyncDelay/Wait,on/onNet/emit/emitNet+ FiveM aliases,exports
cross-runtime dispatch,GlobalState/Player/LocalPlayer/Entitystate bags
and change handlers,vector2/vector3/vector4(Vector*), KVP, resource
natives, entities/state/buckets,PerformHttpRequest, andSetHttpHandler.
Runs inside a strict memory/stack/operation-budget sandbox withevaland
Functiondisabled. -
Per-entity replicated state (
PROTOCOL_VERSION13):FreezeEntityPosition/
IsEntityPositionFrozen,SetEntityVelocity/GetEntityVelocity,
SetEntityHealth/GetEntityHealth/SetEntityMaxHealth/
GetEntityMaxHealth(default200),SetEntityVisible/IsEntityVisible,
SetEntityAlpha/GetEntityAlpha/ResetEntityAlpha(clamped0..=255),
andAttachEntityToEntity/DetachEntity/GetEntityAttachedTo/
IsEntityAttached. Snapshots include full entity state, and per-frame delta
updates (EntityStates) replicate only changed fields within scope and
routing buckets. Frozen and attached entities refuse independent owner moves,
attached children follow parent movement, and deleting a parent
automatically detaches its children. -
HTTP on the server's TCP port (the game address): the built-in
/info.json,
/players.jsonand/dynamic.json, andSetHttpHandlerfor resources under
/<resource>/.... Request bodies, connections, timeouts and the request rate
per client address are limited.sv_exposePlayerIdentifierscontrols the
identifiers in/players.json,sv_httpEnabledswitches HTTP off and
sixm_httpHandlerTimeoutsets the handler timeout. A busy TCP port leaves the
server running without HTTP. -
Resource key-value storage (
sixm-kvp) on the server and the client:
SetResourceKvp, the typed variants,GetResourceKvp*,DeleteResourceKvp,
StartFindKvp/FindKvp/EndFindKvpandFlushResourceKvp. Reads stay in
memory; a background thread appends CRC-checked records to one log per
resource and compacts it, so the frame never waits for the disk. The server
folder issixm_kvpPath. -
Client-created networked entities and ownership migration: clients can call
CreateVehicle,CreatePedandCreateObject(isNetwork = true) using
leased id blocks so the returned id is usable immediately, plus
NetworkRequestControlOfEntityandNetworkGetEntityOwner. The server
enforcessixm_maxClientEntities(default 64, replicated),
sv_entityLockdownand per-bucket lockdown modes, and fires the cancellable
entityCreatingevent;SetEntityOwnerandSetEntityOrphanModecontrol
ownership and orphan handling, migrating ownership to the nearest in-scope
player or the server while preserving teleport epochs. -
Routing buckets on the server:
SetPlayerRoutingBucket,
GetPlayerRoutingBucket,SetEntityRoutingBucket,GetEntityRoutingBucket,
GetPlayersInRoutingBucket, and the stored population and entity lockdown
settings. A player holds only the entities, transforms and entity state of its
own bucket, and its ped moves with it. Bucket 0 costs nothing extra. -
Game-independent core contract (
sixm-core): script values, theHost,
ServerHostandClientHosttraits, theScriptRuntimetrait, entities
and access control. -
Resource system (
sixm-resources): discovery,fxmanifest.luaparsing with
glob patterns, metadata, and dependency ordering. Manifests cannot hang the
server. -
Sandboxed Lua 5.4 runtime (
sixm-lua) with one isolated state per resource
and a FiveM-style API:CreateThread,Wait, events, exports,
RegisterCommand, promises andCitizen.Await,json,vector2,
vector3,vector4,GetHashKey, resource natives and
GetInvokingResource.sourcestays correct acrossWait. -
Server binary (
sixm-server):server.cfg, convars (including replicated
setrconvars), console commands, resource manager, ACE permissions with
commands sent by clients, andExecuteCommandrunning with the rights of the
calling resource. -
Networking (
sixm-net): QUIC transport with encryption, a versioned binary
protocol, a decode budget against oversized input, optional server
certificate pinning, content-addressed file transfer, and paced latent events. -
Players: server ids, connection lifecycle events (
playerConnecting,
playerJoining,playerDropped), deferrals, kicking, round-trip time, and
identifiers derived from a client certificate that the client proves it holds. -
Net events in both directions between server and clients.
-
State bags:
GlobalState,Player(id).state, change handlers and
replication to clients. -
Entities: server-owned entities and a ped per player that the client moves,
compact transform sync that sends only changed, quantized values, and entity
scoping so that players receive only nearby entities. -
Headless client (
sixm-client): resource sync, client scripts, client
exports, and resource file access. -
Performance tooling: frame and traffic measurement with the
perfconsole
command, and a load test with a swarm of bot clients. -
Documentation in
docs/, a design document for game adapters, and a
runnable example server inexamples/server-data. -
Release workflow that builds the server and the client for Linux and Windows.
Known gaps
- There is no GTA VI game adapter yet;
sixm-clientruns headless by default
or with the built-in simulated adapter (--sim). LoadResourceFileon the client only sees the resource's own data folder.