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.

Players

vUI installer

vUI installerWindows 64-bitabout 133 MB

Finds your GTA V Legacy and Enhanced folders and installs vUI.

Developers

vUI SDK

vUI SDKheader, lib, C# wrapper, samples

Everything to build a mod: vUI.h, vUI.lib, vUI.NET.dll and working C++, C# and web examples.

For players

Windows 64-bitGTA V Story Mode, Legacy or Enhanced.
ScriptHookV + ASI loaderFor your game version. Install it separately; vUI does not include it.
C# mods are supported aswell!ScriptHookVDotNet 3 and .NET Framework 4.8. Support for RPH mods are coming soon
Offline onlyvUI is for single-player use, like ScriptHookV.
  1. 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.

  2. 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.dll or other Chromium files in the game’s main folder. They belong only inside vUI\.

  3. 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.

  4. 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.
  5. 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>.xmlEach mod’s settings, including whether it is enabled and its toggle key
vUI\mods\configurations\vUI.xmlThe hub’s own settings
vUI\vui.logvUI’s log. The first place to look when something is wrong
vUI\cef.logChromium’s log
vUI\vui.iniOptional 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

Web onlyAny editor. Nothing to compile.
C++Visual Studio 2022, x64, and the ScriptHookV SDK.
C#ScriptHookVDotNet 3, .NET Framework 4.8, x64 class library.
vUI installedIn your own game, to test.
  1. 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

  2. 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\ExampleMenu and edit it. Restart the game: mods are scanned at startup.

  3. Add game logic optional

    In your ASI project (Release | x64, DLL, output extension .asi):

    SettingValue
    Additional Include Directories<ScriptHookV SDK>\inc;<vUI SDK>\include
    Additional Library Directories<ScriptHookV SDK>\lib;<vUI SDK>\lib\x64
    Additional DependenciesScriptHookV.lib;vUI.lib
    Runtime library/MT (static) is the usual choice

    examples\cpp\SpeedHud\SpeedHud.vcxproj is a working project. It reads the ScriptHookV SDK location from the SHV_SDK environment 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.dll in <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" });
  4. 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 = true in vUI\vui.ini, restart, and open http://localhost:9222 in Chrome or Edge for DevTools.
    • Guard optional use: Vui.IsInstalled (C#) or look up vUI.asi yourself in C++ (see the API page).
  5. Ship it release

    Zip your uimods\MyMod\ folder, plus your .asi or .dll if you have one. List vUI as a requirement; C# mods also need vUI.NET.dll in scripts\. Do not ship vUI.asi or vUI.lib.

Next: the API reference

Every page, C and C# call, with examples.

API reference