Install vUI
in five steps
Playing with vUI mods, or building them? Pick your path. Tick the steps off as you go: your progress is remembered on this device.
vUI installer
Finds your GTA V Legacy and Enhanced folders and installs vUI.
Download installervUI SDK
Everything to build a mod: vUI.h, vUI.lib, vUI.NET.dll and working C++, C# and web examples.
For players
Install ScriptHookV prerequisite
vUI loads through ScriptHookV’s ASI loader. Make sure it works for your game first: if other ASI mods load, you are set.
Run the installer recommended
Choose Legacy (
GTA5.exe), Enhanced (GTA5_Enhanced.exe) or both. The installer detects Rockstar and Steam installs, lets you browse for others, and warns if ScriptHookV is missing. It needs administrator rights.Prefer to copy files by hand?
Copy these into the game folder, next to the game executable:
Grand Theft Auto V\ vUI.asi vUI\ the whole folder: vUI_host.exe, libcef.dll, ui\, locales\ ... uimods\ created automatically on first run
Do not put
libcef.dll,chrome_elf.dll,d3dcompiler_47.dllor other Chromium files in the game’s main folder. They belong only insidevUI\.Start Story Mode, press F5 in game
The Mods Hub opens over the game. Each card shows a mod’s image, name, creator, category and description.
Switch mods on, set keys in the hub
- The switch enables or disables a mod. Disabled mods are not loaded at all.
- Menu mods have Open and a key button. Click it, then press the new key. Backspace removes the binding, Esc cancels.
- F5 and Esc are reserved, and two mods cannot share a key.
- The Settings tab has interface scale, accent colour, reduce motion and hint behaviour.
Add more mods any time
Copy a mod folder into
uimods\and restart the game. Mods are discovered at startup.
Where vUI keeps things
| Path (inside the game folder) | Contents |
|---|---|
uimods\<Mod>\ | Installed mods |
vUI\mods\configurations\<Mod>.xml | Each mod’s settings, including whether it is enabled and its toggle key |
vUI\mods\configurations\vUI.xml | The hub’s own settings |
vUI\vui.log | vUI’s log. The first place to look when something is wrong |
vUI\cef.log | Chromium’s log |
vUI\vui.ini | Optional developer settings (debug, game_cursor) |
Settings files are plain XML and can be edited by hand while the game is closed.
Troubleshooting
The game does not start after installing
Usually Chromium files ended up in the game’s main folder (remove them; they belong in vUI\), or the vUI\ folder is missing. Check asiloader.log in the game folder.
Nothing appears when I press F5
Open vUI\vui.log. A healthy start contains CefInitialize ok, browser created and first frame. If you see LoadLibrary libcef.dll failed, the vUI\ folder is incomplete.
A mod is missing from the hub
The folder has no mod.json, the JSON is invalid, its page file is missing, the folder is named vUI, or the game was not restarted. The exact reason is written to vui.log.
A mod’s toggle key does nothing
The mod is disabled, its key is unset, or another menu is open. Rebind it in the hub. F5 and Esc cannot be used.
The ScriptHookV log does not mention vUI.asi
Check ScriptHookV.log and asiloader.log to see whether vUI.asi loaded at all. If not, the ASI loader itself is not working for your game version.
For mod developers
Download and unzip the SDK 1 minute
vUI-SDK\ include\vUI.h C API header lib\x64\vUI.lib import library for vUI.asi csharp\vUI.NET.dll (+ .xml) C# wrapper examples\uimods\ web-only examples examples\cpp\SpeedHud\ C++ ASI sample examples\csharp\SpeedHudCS\ C# script sample
Make the mod folder web
The folder name is your mod id. Create
uimods\MyMod\in your game folder:// uimods\MyMod\mod.json { "name": "MyMod", "creator": "You", "category": "Example", "version": "1.0.0", "description": "One or two sentences shown in the Mods Hub.", "page": "index.html", "hasToggleKey": true, "defaultToggleKey": "F7" }<!-- uimods\MyMod\index.html --> <body style="background:transparent;color:#fff"> <button onclick="vui.postMessage({ type: 'clicked' })">Tell the game</button> <button onclick="vui.close()">Close</button> <script> window.vuiReceiveMessage = msg => console.log('from game', msg); </script>Or copy
examples\uimods\ExampleMenuand edit it. Restart the game: mods are scanned at startup.Add game logic optional
In your ASI project (Release | x64, DLL, output extension
.asi):Setting Value Additional Include Directories <ScriptHookV SDK>\inc;<vUI SDK>\includeAdditional Library Directories <ScriptHookV SDK>\lib;<vUI SDK>\lib\x64Additional Dependencies ScriptHookV.lib;vUI.libRuntime library /MT(static) is the usual choiceexamples\cpp\SpeedHud\SpeedHud.vcxprojis a working project. It reads the ScriptHookV SDK location from theSHV_SDKenvironment variable.#include "vUI.h" static void OnPageMessage(const char* json, void*) { /* page called vui.postMessage */ } void ScriptMain() { vuiSetMessageHandler("MyMod", OnPageMessage, nullptr); while (true) { if (vuiIsReady() && vuiIsModEnabled("MyMod")) vuiSendMessage("MyMod", "{\"type\":\"hello\"}"); WAIT(1000); } }A class library targeting .NET Framework 4.8, x64:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net48</TargetFramework> <PlatformTarget>x64</PlatformTarget> </PropertyGroup> <ItemGroup> <Reference Include="ScriptHookVDotNet3"><HintPath>path\to\ScriptHookVDotNet3.dll</HintPath><Private>false</Private></Reference> <Reference Include="vUI.NET"><HintPath>path\to\vUI.NET.dll</HintPath><Private>false</Private></Reference> <Reference Include="System.Web.Extensions" /> </ItemGroup> </Project>Put the built DLL and
vUI.NET.dllin<game>\scripts\. All C# mods share that one wrapper.var mod = new VuiMod("MyMod"); mod.MessageReceived += json => { /* page called vui.postMessage */ }; mod.Send(new { type = "hello" });Test and debug in game
- Press F5: your mod should be in the hub. If not, read
vUI\vui.log: the reason is logged. - Set
debug = trueinvUI\vui.ini, restart, and openhttp://localhost:9222in Chrome or Edge for DevTools. - Guard optional use:
Vui.IsInstalled(C#) or look upvUI.asiyourself in C++ (see the API page).
- Press F5: your mod should be in the hub. If not, read
Ship it release
Zip your
uimods\MyMod\folder, plus your.asior.dllif you have one. List vUI as a requirement; C# mods also needvUI.NET.dllinscripts\. Do not shipvUI.asiorvUI.lib.
Every page, C and C# call, with examples.