Docs

How to install and use Kerosene v0.7.0-alpha. If something here doesn't match what you see in game, Support has a checklist.

Requirements

  • GTA VI, Xbox Series 1.0.2.1, running under VIctory, foxhound or darner. Other builds load with a warning, and natives may not line up.
  • ViceHook 0.3.1: ViceHook.dll in your mods folder. Kerosene is a ViceHook plugin. The download includes this build from the darner-support branch of my fork, which adds darner support (offered upstream as pull request #3).
  • Story mode. Kerosene is offline only and never touches online play.

Install

  1. Find your emulator's mods folder (paste it into Explorer's address bar):
    • VIctory / foxhound: %LOCALAPPDATA%\victory\mods
    • darner: %LOCALAPPDATA%\darner\mods
  2. Copy everything in the package into it, replacing files:
    mods\
    ├─ ViceHook.dll          (0.3.1)
    ├─ Kerosene.asi
    └─ Kerosene\
       ├─ banner.png
       ├─ vehicles.txt
       ├─ peds.txt
       ├─ weapons.txt
       ├─ scenarios.txt
       ├─ pricedown\
       └─ xmas\
  3. Start the game. A notification says Kerosene v0.7.0-alpha ready and names the menu key: F7 under VIctory, F6 under darner (darner uses F7 itself).

If the notification says untested game build, your game isn't Xbox Series 1.0.2.1. The menu still opens, but expect rows that do nothing.

Updating

Replace Kerosene.asi (and ViceHook.dll if the package has a newer one) and copy the new Kerosene folder over the old one. Your bookmarks.txt, settings.ini and saved outfits aren't in the package, so they stay. If you edited vehicles.txt or peds.txt yourself, keep a copy before you overwrite them.

ViceHook's Insert reload picks up a new .asi without restarting the game. Kerosene restores the freecam state after a hot reload from state.ini.

Controls

KeyboardXbox pad
Open / closeF7 (F6 under darner)*RB + d-pad left
Move↑ ↓ or Num 8 Num 2d-pad up / down
Change value, page long lists← → or Num 4 Num 6d-pad left / right
SelectEnter or Num 5A
BackBackspace or Num 0B
Ghost Observer on / offF9*
Clean recording modeF8 (F10 under darner)*

* Change them in Menu Settings › Hotkeys: press a row, then the new key (Esc cancels). Or in Kerosene\settings.ini as menu_key, clean_key and ghost_key: F1-F12, Home, End, Page Up, Page Down, Delete, Num * / - +, Scroll Lock, Pause, or auto. darner uses F1-F3, F7 and F8 for its own menus, and ViceHook uses ` and Insert; Kerosene warns you if you pick one of those.

Freecam

FlyW A S Dleft stick
Up / downSpace or E / Ctrl or Qtriggers
Faster / slowerhold Shift / Alt
Lookmouse or arrow keysright stick
Zoom (FOV)Z / X

Text prompts

Bookmark names, searches and coordinates open a text box: type, Enter saves, Esc cancels. Coordinates take X Y Z with spaces or commas.

EXP and N/A badges

GTA VI's native functions are still being mapped. Every row in Kerosene tells you how sure it is.

No badgeBuilt on natives that were checked in the running game, by Kerosene, ViceMenu, ViceHook or ScriptHook VI.
EXPThe native exists in your build, but its GTA VI arguments haven't been confirmed in game. EXP rows are on by default; Menu Settings › Experimental Options locks them.
N/ANo native for it exists in Xbox Series 1.0.2.1 yet. The row explains why and names the working alternative.

Menu Settings › Diagnostics checks every feature's natives live in your game.

The main menu, top to bottom. Long lists page with ← → and every list has a search row.

PlayerGod mode, invisibility, wanted level, run speed, vitals.
WeaponsEvery weapon by name, loadouts, infinite ammo, explosive rounds and gun modes.
Vehicle SpawnerEvery vehicle in the game by category, spawn inside, despawn previous.
Vehicle OptionsRepair, performance, indestructible, paint.
WardrobeJason's and Lucia's clothing, hair, tattoos and accessories: what they wear now, and every item in the game.
AnimationsEvery scenario animation in the game (dance, smoke, sit, lean, phone, workout...), on you or nearby peds.
PedsSpawn any ped beside you, or become one. Story, police, gangs, animals and the rest.
NPC InspectorDirector mode: scan, select, marker, and command nearby peds.
BodyguardsArmed guards that follow you, ride with you and fight anyone who comes for you.
Creator & FreecamGhost Observer, detached freecam, saved locations.
Teleport & BookmarksWaypoint, coordinates and your saved spots.
WorldFreeze traffic and peds, riot mode, clear area, density.
Time & WeatherSlow motion, time-of-day scrubber, weather.
MissionForce a mission fail.
Menu SettingsPosition, colours, hotkeys, clean recording mode, diagnostics.

Data files

Everything lives in mods\Kerosene\. They're plain text: edit them, then use Menu Settings › Reload Data Files.

FileFormat and use
vehicles.txtcategory|model name, optional |0xKEY. Ships with 329 vehicles in 16 categories. Missing file: a built-in copy is used.
peds.txtSame format, 2,319 ped models.
bookmarks.txtname|x|y|z|heading. Written by the Bookmarks menu.
scenarios.txtLabel|0xHASH for NPC scenarios.
outfits.iniSaved Wardrobe outfits: the worn item ids per character.
settings.iniMenu position, colours, hotkeys, experimental lock, and the freecam camera hash once found.
state.iniRuntime state used to restore the camera and your story character after a hot reload.
banner.pngHeader logo. titles\<menu>.png (1024×128, transparent) adds per-menu title art. pricedown\ holds the heading letters and xmas\ the Christmas lights.

Adding a vehicle the list doesn't have

Get in it (a police car, a mission car) and use Vehicle Spawner › Add Current Vehicle to List. Its exact key is saved to vehicles.txt. You can also type a name or a 64-bit key in Spawn by Model Name.

Model lists from your game

The shipped categories are a best guess from model names. To get the exact archive categories from your install, run the extractor. It needs Python 3 and vicerpf.

python tools\extract_models.py "D:\path\to\your GTA VI folder" --out "%LOCALAPPDATA%\victory\mods\Kerosene"

Under darner, use %LOCALAPPDATA%\darner\mods\Kerosene as the output folder.

Then Menu Settings › Reload Data Files, or restart the game.

Settings and saved state

Everything in Menu Settings saves to settings.ini as you change it: accent colour (Vice Violet, Neon Pink, Ocean Cyan, Sunset Drive, Miami Mint, or the limited Christmas theme, the default right now), logo banner, footer key hints, Pricedown headings, hotkeys, the experimental lock and the menu's position.

Saved outfits (up to 5 per character, in outfits.ini) and bookmarks persist between sessions. Reset UI puts position, size and colours back to default. Turn Everything Off switches off every effect at once, and Unload Kerosene makes it ignore the menu key until the game restarts. Reset UI leaves your hotkeys alone; Hotkeys › Reset Hotkeys puts them back to automatic.

Building from source

To build Kerosene.asi with MSVC, open the x64 Native Tools Command Prompt, point VICEHOOK_SDK at the SDK and run:

set VICEHOOK_SDK=C:\path\to\vicehook\sdk
build.bat

The version lives in src/version.h. Bump it and add a CHANGELOG.md entry for every build you hand out; this website reads both.

Tests

  • tests/sim runs the whole plugin against a simulated game and checks every native call's cell count against the NativeDB (tests/sim/run_sim.sh).
  • In game, put an empty selftest.run in mods\Kerosene. Results go to ViceHook.log.

How it works

Two script fibers. The UI fiber handles input, the menu, per-frame features and the HUD, and never waits. A worker fiber runs anything that has to wait for the game (spawning, model loading, ground probing), so the menu keeps drawing while a spawn is in progress.

  • Model keys are the low 64 bits of MurmurHash3_x64_128 (seed 0) of the lower-case model name. Checked against all keys of the game's vehicle model table and the player's 0x6B13B6B43F959856 (player_story000_00).
  • Spawning finds the calling script program through the game's TLS slot itself (slot 33 under VIctory; darner differs, so it is looked up, not assumed) and runs ViceHook's creation sequence through it.
  • Input comes from ViceHook's keyboard handler. While a plugin blocks game input, GetAsyncKeyState returns nothing to plugins too.
  • Entities are 16-byte references, headings are radians, and camera rotation units are learned in game.
  • The 3D marker is drawn on ViceHook's overlay: GTA VI has no 3D draw natives.

The long version, with addresses and native hashes, is in the changelog's research notes.

Credits

Not affiliated with Rockstar Games or Take-Two.