JRV HUD

Configuration

All server settings are in config.lua. Settings apply in this order: built-in defaults, then your server settings, then each player's own choices in the editor. Restart JHUD after you change the file.

Framework and language

Setting Default Description
Config.Cati 'oto' 'oto' detects the framework. Force one with 'qbx' (Qbox), 'qb' (QBCore), 'esx' (ESX Legacy) or 'yok' (none)
Config.Dil 'en' 'en' or 'tr'; the texts are in dil.lua

Look

Config.Gorunum is the server's default look. Players can change all of it for themselves in the editor.

Setting Default Description
sekil 'halka' Status items: 'halka' (rings) or 'cizgi' (lines)
gosterge 'yuvarlak' Vehicle gauge: 'yuvarlak' (Round), 'cizgi' (Lines), 'klasik' (Classic), 'dijital' (Digital), 'yaris' (Race)
dizilim 'yatay' 'yatay' (row), 'dikey' (column) or 'cevre' (around the map, with harita = 'yuvarlak')
grup 'birlikte' 'birlikte': status items move as one piece; 'ayri': each one moves on its own
stil 'ayrik' 'ayrik': each element has its own backing; 'kapsul': all share one glass backing
renk 'renkli' 'renkli': each status has its own colour; 'tek': white, only warnings are coloured
vurgu '#0a84ff' Accent colour for the speed arc and the heading badge
cam 0.66 Glass darkness, 0 to 0.95
olcek 1.0 HUD scale, 0.6 to 1.6
harita 'kare' Minimap: 'kare' (square) or 'yuvarlak' (round)
sayi true Briefly show the number on an element when its value changes noticeably
doku true Gauge materials: chrome bezel, brushed metal, glass glare, carbon, LCD glass

Editor and server layouts

Setting Default Description
Config.Duzenleme.acik true false: the editor command does not work and everyone uses the server's look
Config.Duzenleme.komut 'hud' Editor command
Config.Duzenleme.tus '' First key binding; empty means unbound
Config.VarsayilanDuzen '' Share code of the server's default layout (positions, sizes and hidden elements included)
Config.HazirDuzenler {} Your own presets, shown next to the built-in ones (up to 8)

Server default layout

  1. In game, build the layout with /hud.
  2. On the Layouts tab press Copy code.
  3. Paste the code into Config.VarsayilanDuzen and restart JHUD.

Players with no saved layout start with this layout, and Reset all returns to it. Changing it does not remove layouts that players have already saved. The map shape is not taken from the code; Config.Gorunum.harita applies. If Config.VarsayilanDuzen is empty, Config.Gorunum and the built-in placement are used.

Your own presets

Each preset has a name (ad) and either a share code (kod) or a set of Config.Gorunum fields (ayar):

Config.HazirDuzenler = {
    { ad = 'Server', kod = 'JHUD1....' },
    { ad = 'Orange', ayar = { sekil = 'cizgi', gosterge = 'klasik', vurgu = '#ff9f0a' } },
}

Hide and cinematic mode

Setting Default Description
Config.Gizle.komut 'hudgizle' Hides and shows the HUD and the map; empty turns the feature off
Config.Gizle.tus '' First key binding for hiding
Config.Gizle.sinemaKomut 'sinema' Cinematic mode (black bars at the top and bottom, HUD and map hidden); empty turns it off
Config.Gizle.sinemaTus '' First key binding for cinematic mode

HUD elements

Setting Default Description
Config.Konum true Street, zone and heading line
Config.Ses true Voice ring (pma-voice: proximity, radio channel, radio active)
Config.HizGostergesi true Vehicle gauge; set false if another resource draws its own
Config.Kemer true Seatbelt lamp and warning sound. Reads LocalPlayer.state.seatbelt or harness; on QBCore it also follows the seatbelt:client:ToggleSeatbelt event. Set false if your server has no seatbelt resource
Config.Kmh true true: km/h; false: mph
Config.Yakit 'oto' 'oto' finds the running fuel resource, otherwise the game value is used. Or a resource name, 'oyun', or your own function function(arac) that returns 0 to 100
Config.ParaBirimi '$' Currency sign
Config.Bilgi.kimlik true Server ID chip
Config.Bilgi.saat 'oyun' 'oyun': game time; 'gercek': the player's PC clock; false: off
Config.Bilgi.meslek true Job and grade; the icon is coloured while on duty
Config.Bilgi.nakit true Cash chip
Config.Bilgi.banka true Bank chip
Config.Dayaniklilik true Stamina, drops while running and is hidden while full
Config.Hasar.acik true Screen edges turn red at low health
Config.Hasar.darbe true Short red flash when hit
Config.Pusula.acik true Compass strip at the top centre
Config.Pusula.kamera true true: the direction the camera faces; false: the character's or vehicle's direction
Config.Ucus.acik true Flight gauge in planes and helicopters
Config.Ucus.feet false false: altitude in metres, vertical speed in m/s; true: feet and ft/min
Config.Telsiz.acik true Radio talker list (pma-voice)
Config.Telsiz.ad 'karakter' 'karakter': character name; 'oyuncu': FiveM player name; 'kimlik': server ID only
Config.Telsiz.kendin false Also list your own name while you talk on the radio

A radio talker's name is only given to players on the same radio channel. Both players' channel is checked against pma-voice's own server data; when a name cannot be checked, the list shows the server ID instead. In 'kimlik' mode no name is requested from the server.

Sounds

Config.Sesler controls the sound alerts. The interface generates them; there are no sound files. Players can switch every alert off in the editor.

Setting Default Description
acik true Starting value for players
duzey 0.5 Volume, 0 to 1
kemer true Warning sound above 20 without a seatbelt
sinyal true Indicator tick
yakit true Three beeps when fuel drops to 20% and to 10%

Timing and thresholds

Setting Default Description
Config.AralikYaya 150 Update interval on foot (ms)
Config.AralikArac 60 Update interval in a vehicle (ms)
Config.Dusuk 20 Below this percentage a status ring glows red
Config.DusukYakit 20 Low fuel notification (percent)
Config.DusukYakitTekrar 60000 Repeat interval of the low fuel notification (ms)
Config.Bosluk 0.006 Gap to the minimap (fraction of the screen height)

Map

Setting Default Description
Config.Harita.kaynaklar One map resource name Map resources that report their own rectangle (exports rect() and gorunur()). If none of them runs, the GTA radar is used
Config.Harita.goster 'arac' With the GTA radar: 'arac' in vehicles only, 'hep' always, 'kapali' never, 'elleme' JHUD does not switch the radar on or off
Config.Harita.barlariGizle true Hide the health and armour bars under the GTA radar
Config.Harita.sekliYonet true Apply the square or round shape to the GTA radar; false hides the option from players
Config.Harita.kaynakSekli false true if your map resource listens to the jhud:client:haritaSekli event and can change its shape
Config.Harita.yuvarlak { sol = 0.0, alt = 0.012, cap = 0.185 } Round GTA radar: extra left and bottom gap and the diameter (fractions of the screen height)

Vehicle control

Setting Default Description
Config.Arac.acik true On-vehicle control panel
Config.Arac.komut 'arackontrol' Panel command
Config.Arac.tus 'F6' First key binding for the panel
Config.Arac.mesafe 6.0 On foot, the nearest vehicle within this distance (metres) is targeted
Config.Arac.hizSiniri 2.5 The panel opens only below this speed (m/s) and closes if the vehicle goes faster
Config.Arac.teker true Quick wheel, also while driving; false turns it off
Config.Arac.tekerKomut 'aracteker' Quick wheel command (held)
Config.Arac.tekerTus 'Z' First key binding for the quick wheel
Config.Arac.kilitKomutu 'oto' 'oto': the key resource's own command (qbx_vehiclekeys, qb-vehiclekeys), otherwise the doors are locked directly. Your own: { 'command' } or { '+press', '-release' }. false: always lock directly
Config.Arac.disaridanIzin nil Who may use a vehicle from outside. nil: whoever has the key; with no key resource or no key, unlocked vehicles only. Your own rule: function(arac) return true / false end
Config.Arac.kamera { yon = 100.0, egim = 24.0, fov = 42.0, egimEnAz = 4.0, egimEnCok = 72.0 } Start angle in degrees (180 = straight behind, 90 = left side), pitch, field of view and pitch limits. If the player stands on the right or sits in the right seat, the same angle is used from the right

Stress

Stress is off by default. While it is off, stress does not rise, there are no effects, the ring is hidden and stored stress is reset to 0 on login. To turn it on, set acik = true in Config.Stres and restart JHUD.

Setting Default Description
acik false Stress on or off
polisMuaf true Players whose job.type is 'leo' gain no stress
bildir true Notification when stress rises or drops
hiz.aralik 10000 How often speed is checked (ms)
hiz.esik 160 With a seatbelt (and on motorcycles), speeds above this add stress (km/h)
hiz.kemersizEsik 80 The same without a seatbelt (km/h)
hiz.kazanc { 1, 3 } Stress gained from speed
ates.olasilik 0.1 Chance per shot that stress rises
ates.kazanc { 1, 5 } Stress gained from shooting
ates.muaf Petrol can, hazard can, fire extinguisher Weapons that never add stress
etki.esik 50 Above this stress the screen blurs at intervals
etki.enSeyrek 55000 Time between two effects at the threshold (ms)
etki.enSik 17000 Time between two effects at stress 100 (ms)
etki.bulanikEnAz 1500 Blur duration at the threshold (ms)
etki.bulanikEnCok 3000 Blur duration at stress 100 (ms)
etki.sarsinti true The camera shakes slightly during the blur
etki.sendele true At stress 100 the character stumbles on foot
sinir.aralik 500 Minimum time between two events in the same direction from one player (ms)
sinir.pencere 10000 Window in which the totals below are counted (ms)
sinir.enCokArtis 50 Most stress that events can add in the window
sinir.enCokAzalis 50 Most stress that events can remove in the window

hud:server:GainStress and hud:server:RelieveStress can be triggered by any client, so the server limits them per player with Config.Stres.sinir. Events or amounts over the limit are ignored. Raise the limits if one of your resources legitimately sends bigger or faster changes.

Commands and key bindings

Command Setting First key What it does
/hud Config.Duzenleme.komut None Opens the layout editor
/hudgizle Config.Gizle.komut None Hides or shows the HUD
/sinema Config.Gizle.sinemaKomut None Cinematic mode
/arackontrol Config.Arac.komut F6 Vehicle control panel
+aracteker Config.Arac.tekerKomut Z Quick wheel, works while the key is held
/nakit Fixed name None Shows the cash balance for a moment
/banka Fixed name None Shows the bank balance for a moment

The keys in config.lua are only the first bindings. Players change them in Settings > Key Bindings > FiveM. /hudgizle and /sinema do nothing while the editor is open.

Languages

dil.lua contains Turkish (tr) and English (en). To add a language, add a table with a new code and set Config.Dil to that code. Any text missing from your table is taken from English. binlik sets the number format (a browser locale code) and yon holds the eight directions clockwise from north.

For other resources

  • exports.jhud:gizle(bool), exports.jhud:sinema(bool), exports.jhud:stres(), exports.jhud:aracKontrol(bool).
  • Event jhud:client:kip (hidden, cinematic) and event jhud:client:haritaSekli (shape).
  • Stress is changed with hud:server:GainStress and hud:server:RelieveStress, as in other HUDs.
exports.jhud:gizle(true)
exports.jhud:sinema(false)