Skip to main content

Installation

A player wearing the RoadVR headset
RoadVR is a spatial AR interface for FiveM: world-anchored HTML panels the player can place in the room, carry along and interact with. It runs on ESX, QBCore, Qbox and standalone.
Do not use FileZilla. It can corrupt or skip hidden files during upload. We recommend WinSCP.
There is no transaction ID to enter and no SQL file to import. Unlike our other scripts, RoadVR has no API.lua key step — in RoadVR, API.lua is the exports file for other developers. The database sets itself up on first start. If you came here looking for the license step, there isn’t one.

📋 Prerequisites

ox_lib

Required. Must be started before RoadVR.

oxmysql

Required. Every persistence path depends on it.

FTP Client

WinSCP or similar (not FileZilla)

Inventory

Optional — only if you want the headset to be a real item

🚀 Setup Instructions

1

Extract the resource

Extract roadvr into your resources folder. We recommend a [road] folder alongside our other scripts:
2

Register the item

Add an item called roadvr_headset to your inventory. The name is configurable through Config.Item.
data/items.lua
3

Configure

Everything lives in config.lua. For a first start you rarely need to touch more than the top:
config.lua
Config.Locale ships as 'en'. The German translation is included — set it to 'de' and the Lua-side notifications switch over.
Ship with Config.Debug = false. It enables /roadvr_calib and the in-game tuning keys, which players should not have.
Interface language is not Config.Locale. Each player picks their own in the headset’s Settings app. Config.Locale only covers Lua-side messages — notifications and errors.
4

Start the resource

server.cfg

🗄️ About the database

The four tables are created on first start, and an older installation has missing columns added automatically. You do not have to prepare anything. sql/roadvr.sql ships for two cases only:
  • your database user has no CREATE permission
  • you want to read the schema before a script touches your database

✅ Verification

Run this in your server console:
It checks the bridge, ox_lib, oxmysql, your inventory, the locale, the database table, and the optional xsound and RoadPhone integrations. Then in game: use the item, and the visor should open onto the launcher.

🖼️ One thing that is deliberately missing

RoadVR ships without panorama images for the Environments app. An 8192px equirectangular JPG is around 36 MB, downloaded once by every player, and which ones those should be is the server owner’s call.

Setting up environments

Where to get panoramas and how to add them

📦 What else is in the download

examples/ carries three ready-to-run resources you can ensure as they are:

Custom Apps

How the examples are built, and how to write your own

📚 Next Steps

Controls

Keys, focus mode and how windows are moved

Apps & Widgets

What comes with the headset

Custom Apps

Put your own resource on the home screen

FAQ

Any problems or questions?