Repository navigation
Releases
ViceHook 0.3.0: spawning
For the Xbox Series build v1.0.2.1 (PE timestamp 1794606036) under VIctory-NVIDIA.
Install: copy bin/ViceHook.dll and bin/ViceMenu.asi into %LOCALAPPDATA%\victory\mods (replacing 0.2.0).
Spawning. Plugins can now create objects, vehicles and peds:
- SDK:
spawnObject(key, pos, &out),spawnVehicle(key, pos, heading, &out)andspawnPed(key, pos, heading, &out), with 64-bit model keys. Each waits a few frames for the game, so call it from a script fiber. - Console:
spawn object|vehicle|ped KEYcreates one 3 m in front of you.GET_ENTITY_MODEL vehgives you a key to try.
GTA VI creates entities through async natives that return a task, and each call needs the token that the calling script program uses for the game's own create task type. Tokens differ from program to program, so ViceHook finds the task type by its hash, holds the task with the engine's own strong handle until it finishes, then releases it. The whole investigation, including what crashed the game along the way, is in docs/SPAWNING.md.
What was tried in game (2026-12-01):
- Objects and vehicles: through the SDK and through the console.
- Peds: through a test plugin with the same calls
spawnPedmakes.spawnPeditself has not run in game yet. - Releasing the held task once it finished: the game stayed stable afterwards.
Also new:
- The tracer logs each async call's task type.
- Console research commands:
tasktypes,pinandunpin.
The native database is the GTA VI NativeDB from ScriptHook VI, CC BY 4.0 (see NOTICE.md).
ViceHook 0.2.0
For the Xbox Series build v1.0.2.1 (PE timestamp 1794606036) under VIctory-NVIDIA. Everything below was tried in game.
Install: copy bin/ViceHook.dll and bin/ViceMenu.asi into %LOCALAPPDATA%\victory\mods (replacing 0.1.0), start the game, press F4 or RB + d-pad right.
New for plugin authors and researchers:
- Native console (the **
** key): call any native by name with typed arguments (me,veh,here,$1for earlier results,&0for out-buffers,"text"for hashes), with Tab completion and each native's parameter types and confidence.find,info,call 0xID,peek. Every call and result goes toViceConsole.log, which makes it a tool for naming the 4,700 unnamed natives.ViceConsole.run` runs scripted sessions. - Native call tracer:
trace NAME|PREFIX*|0xIDlogs the game scripts' own calls, with decoded arguments and results, toViceTrace.log.trace count 10counts calls to every native. - Hot reload: Insert reloads every plugin. Plugins load from copies, so you can rebuild an
.asiin place while the game runs. - SDK:
createTexture/drawImage,showNotification,blockGameInput; Xbox pad buttons arrive in keyboard handlers asVK_GAMEPAD_*. - ViceMenu: Xbox pad control (RB + d-pad right opens it; d-pad, A and B drive it and don't reach the game while it is open), and messages now show as notifications.
Spawning is still not possible. What is known about GTA VI's async creation natives, and how to experiment with the console and tracer, is in docs/SPAWNING.md.
The native database is the GTA VI NativeDB from ScriptHook VI, CC BY 4.0 (see NOTICE.md).
ViceHook 0.1.0
First release, for the Xbox Series build v1.0.2.1 (PE timestamp 1794606036) under VIctory-NVIDIA.
Install: copy bin/ViceHook.dll and bin/ViceMenu.asi into %LOCALAPPDATA%\victory\mods, start the game, press F4. Numpad 8/2/4/6/5/0 drive the menu (NumLock on).
- ViceHook: binds 6,820 natives by their own ids (no hard-coded addresses), runs
.asiplugin scripts as fibers once per game frame inside one game script thread, Script Hook V-style API plus a 2D overlay. - ViceMenu: player, weapons, vehicle, teleport, time, weather, world and misc pages. Everything in it was tried in game.
- SDK:
SDK/inc(withnatives.h, all 6,829 natives) andSDK/lib/ViceHook.lib.
Not yet: spawning vehicles, peds and objects; single-weapon give; money; vehicle colours.
The native database is the GTA VI NativeDB from ScriptHook VI, CC BY 4.0 (see NOTICE.md).