Making a mod
The routes that work for GTA VI today (layer mods in Lua or DLL, ScriptHook VI scripts, settings presets, same-size audio replacement), and how to package the result for ViceSixM.
Read Getting started first: GTA VI runs through a compatibility layer, and no tool edits the game's archives. Everything below works beside the game's data. A mod may contain only your own work, never game files or anything extracted or derived from them.
Layer mods (Lua)
The SixM mod loader runs small Lua 5.4 scripts next to the game. A mod is a folder:
my.mod/
mod.toml
main.lua
[mod]
id = "author.name" # letters, digits, . _ -
nombre = "My mod"
version = "1.0.0"
autor = "author"
tipo = "lua"
lua = "main.lua"
[juego]
exe_blake3 = "..." # optional: run only beside that executable
The field names are in Spanish because the loader reads them that way. exe_blake3 is the BLAKE3 fingerprint of the game executable your mod was made for; with it, the loader skips the mod on any other build.
The scripts get a sixm table, among other things:
| Call | What |
|---|---|
sixm.log(...) | Write a line to the log |
sixm.on_frame(f) | Run f(frame) once per presented frame |
sixm.on_key(key, f) | Run f() when a key goes down, for example "F7" |
sixm.show(lines) | Show lines of text in the loader's box on screen |
sixm.read, sixm.write, sixm.scan | Read, write and search the game's memory, checked so a bad address fails the call |
A script that raises an error is logged and dropped; it does not stop the game. The loader's Lua has no file, os or require access.
Memory access depends on one build of the game. If your mod uses it, set exe_blake3 so it refuses to run on another.
Layer mods (DLL)
A DLL mod is a native library loaded before the game starts. It exports an entry point sixm_init and declares in mod.toml that it runs code:
[mod]
id = "author.name"
tipo = "dll"
dll = "mod.dll"
[requisitos]
ejecuta_codigo = true
Players will rightly be careful with DLLs. Say plainly in your description what it does, and do not use the network without saying so.
ScriptHook VI scripts
ScriptHook VI is a third-party project that gives plugins access to the game's script commands (natives): reading the world, calling script functions, drawing a menu. It ships an SDK in C and C++ and sample plugins, and its README and docs folder are the reference. A plugin is a library placed in shvi\plugins. Scripts work against one game build, run only in story mode, and the project is pre-alpha, so expect things to change.
Settings presets
A preset is a recommended set of values for the game's own settings, for example for 8 GB cards or for long draw distance. Do not ship the game's settings.xml: the game generates it. Ship a short text file that lists field names and values, and say what you measured (card, resolution, frame rate) and what you changed from the defaults. Only values you tried in game belong in it.
Layer options
The layer's own switches (upscaling, frame generation, ambient light, passes to skip) can also be shared as a list: option name, value and what it does on your machine.
Replacing audio with same-size banks
This is an experiment, tried only on a single voice bank, and a mod made this way cannot be distributed as a ready file. What is understood:
- Some audio banks inside the archives are stored as plain data rather than compressed, so a bank can be replaced by another that is exactly the same size, written over the original on a copy of the game. The archive's index is not rewritten.
- Your installation stays untouched: the game is run from a separate folder whose files are links to the originals, except for the one replaced file.
- A replacement that is longer than the original does not fit. That would need a way to write RPF9 indexes, which does not exist.
The result of this process is a modified game archive. That is game data, so it must not be uploaded by you or anyone else. What you could share is your own audio and a description of how to apply it on someone's own copy. No tool for that is published here, and we do not provide steps. If you do experiments like this, keep them on your PC.
Package it for ViceSixM
Upload a .zip. A manifest is optional, but if there is a vicesix.json at the root the site validates it and shows version, dependencies and files on the mod page.
my-mod-1.0.0.zip
├─ vicesix.json
└─ content/
├─ readme.txt
└─ my.mod/
├─ mod.toml
└─ main.lua
- Put everything under
content/. For a loader mod,content/<mod folder>/is the folder the player copies into their mods folder. - Include a
readme.txt: what it does, which layer and game build it was tested on, how to install it, how to turn it off and what to expect from it. - Do not include game files, extracted data, keys, or anything you do not have the right to share.
A manifest:
{
"format": 1,
"id": "my-mod",
"name": "My mod",
"version": "1.0.0",
"author": "your-name",
"game": "gta6",
"description": "A small on-screen counter.",
"files": [
{ "path": "readme.txt", "action": "add" },
{ "path": "my.mod/mod.toml", "action": "add" },
{ "path": "my.mod/main.lua", "action": "add" }
],
"dependencies": []
}
The files paths are relative to content/. The manifest is separate from the loader's mod.toml: the loader never reads vicesix.json, and the site never reads mod.toml. The vicesix.json is for the website only.
| Field | Rule |
|---|---|
format | 1 |
id | 3 to 64 characters: lowercase letters, digits, ., _, -; starts with a letter or digit |
name | 3 to 80 characters |
version | MAJOR.MINOR.PATCH, optional suffix such as -beta |
author | 2 to 60 characters |
game | "gta6" |
description | optional, up to 2000 characters |
files | 1 to 5000 entries, each with path and action (add or replace; add if omitted); no duplicates |
dependencies | optional, up to 50; each has an id and an optional min version; a mod cannot depend on itself |
Paths must be relative, use /, be at most 240 characters, and avoid \, :, *, ?, ", <, >, |, control characters, empty, . or .. segments, segments ending in a dot or space, and Windows reserved names. The manifest cannot be larger than 256 KB, and packages cannot contain symbolic links.
Every declared file must exist under content/, and nothing under content/ may be left undeclared.
Test before you upload
Copy the package's mod folder into a mods folder on your own PC, start the game, and check the log (Installing mods). Confirm that disabling the mod and deleting its folder leaves the game as it was. Then go to Publishing.