Installation
Requirements
Install and start these dependencies before KOJA HUD:
- koja-lib — required. It detects your framework (ESX, QBCore or Ox) and provides money, job, key bind and callback helpers.
- oxmysql — required. The server script loads it even when the nitro system is off.
- pma-voice — used for the voice bar by default. See
KOJA.Microphonein Configuration to change this. - Node.js — only when you rebuild the web UI from source.
The resource needs lua54 and the gta5 game, both already declared in its fxmanifest.lua.
Install
- Place the
koja_hudfolder in your resources directory. - Add it to
server.cfgafter its dependencies:
ensure koja-lib
ensure oxmysql
ensure koja_hud
- Open
editable/shared/config.luaand adjust the options you need. - Restart the server.
The web UI is shipped prebuilt in web/build. You do not need Node.js unless you change the interface.
First start
- Nitro adds one
nitrocolumn to your vehicles table automatically. See Database. - The resource streams the files in its
streamfolder (squaremap.ytd,minimap.gfxandgraphics.ytd) to give the minimap its square shape. Do not run a second script that replaces the minimap. - Each player's personal settings are saved in their own game client. The first time they join they receive the defaults from
editable/shared/js.json. - Players open the settings menu with
/settings.
Rebuilding the web UI
Only needed if you edit files in web/src.
cd web
npm install
npm run build
npm run build writes to web/build. Restart the resource after building.
Related pages
- Configuration — Changing Language, Debug Prints, Settings Command, Hide Minimap, Notifications, Nitro, Engine, Seatbelt and Cruisemode.
- Guides — Creating/Editing Locales, Progress Bar, Text UI and Stress.
- Features
- Exports & Commands
- Database
- HUD — back to the section overview