Kartik Scripts

Installation

๐Ÿ“‹ Requirements

Resource
ox_libRequired
Qbox, QBCore or ESXDetected automatically

Detected automatically (optional)

TypeSupported
โ›ฝ Fuelox_fuel, LegacyFuel, cdn-fuel, ps-fuel, lj-fuel, Renewed-Fuel, nd_fuel, lc_fuel, okokGasStation, qs-fuelstations, rcore_fuel, hyon_gas_station
๐ŸŽ™๏ธ Voicepma-voice, SaltyChat
๐Ÿ”ซ Weapon names & imagesox_inventory, qb-core shared weapons
๐Ÿ“ฎ Postal codesBuilt in (data/postals.json). If nearest-postal is running, its codes are used instead
๐Ÿชข Seatbeltqbx_seatbelt, kartik-mechanic, or the built-in seatbelt
๐Ÿ”ง Mechanickartik-mechanic: nitro, TCS / ESC, harness, manual gears and mileage
๐Ÿšฆ Cruise controlqbx_smallresources, or the built-in cruise control

๐Ÿš€ Installing

  1. Drop kartik-hud into your resources folder.
  2. Stop your old HUD. qbx_hud, qb-hud and similar must not run alongside it, kartik-hud replaces them, including their stress handling.
  3. Make sure it starts after ox_lib and your framework:
ensure ox_lib
ensure qbx_core        # or qb-core / es_extended
ensure kartik-hud
  1. Restart your server and join. The HUD appears as soon as your character loads.

The console prints [HUD] Detected Framework: qbx (or qb / esx) on start. If it prints an error instead, your framework is not started before kartik-hud.


๐Ÿ‘‘ Admin access

Two things need admin rights, both controlled by ACE permissions:

WhatConfigDefault
Saving the server default HUD in /hudConfig.AdminAcecommand
Opening the HUD Builder (/hudbuilder)Config.Builder.acecommand

command is the permission txAdmin and server admins already have. To give it to a group instead:

add_ace group.admin kartik.hud allow

and set Config.AdminAce = "kartik.hud" and Config.Builder.ace = "kartik.hud".


๐Ÿ’พ Saved data

kartik-hud needs no database.

WhatWhere
Each player's own HUDTheir game client (resource KVP)
The server default HUDdata/defaults.json
HUD Builder designsdata/designs.json

Back up data/designs.json before updating the resource, it holds every design your admins have built.


โœ… First steps

  1. Type /hud and pick a theme, speedometer and status style.
  2. Click Edit Layout at the bottom of /hud to lay the HUD out.
  3. As an admin, press Save as default in /hud โ†’ General โ†’ Admin. Every new player starts with your layout.
  4. Try /hudbuilder to design your own HUD, see HUD Builder.

On this page