├── license ├── config └── config.lua ├── README.md ├── fxmanifest.lua ├── html ├── main.css ├── script.js └── ui.html └── client └── client.lua /license: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /config/config.lua: -------------------------------------------------------------------------------- 1 | Config = {} 2 | Config['TickTime'] = 1000 3 | Config['Hud'] = true 4 | Config['HideMinimap'] = true 5 | Config['Stress'] = false 6 | Config['PlayerID'] = true 7 | Config['Fuel'] = true --only Visible in Car 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Kl_HudV2 2 | Original Thread: https://forum.cfx.re/t/ks-hud-v2-release-esx-1-1-final-esx-1-2-exm-new-hud-v2/1829368 3 | Created by: https://github.com/Kilichi/Kl_HudV2 4 | 5 | To Enable/Disable things go to the config.lua and set things to "true" if u want to enable or "false" if u want to disable things 6 | 7 | <3 8 | -------------------------------------------------------------------------------- /fxmanifest.lua: -------------------------------------------------------------------------------- 1 | fx_version 'adamant' 2 | game 'gta5' 3 | name 'Kilichi Hud V2' 4 | description 'Ks Hud Fivem' 5 | ui_page 'html/ui.html' 6 | author 'Kilichi#0001 | Kilichi' 7 | 8 | files { 9 | 'html/ui.html', 10 | 'html/script.js', 11 | 'html/main.css', 12 | 'html/animate.css', 13 | 'html/media.css' 14 | } 15 | 16 | shared_scripts { 17 | 'config/config.lua' 18 | } 19 | 20 | client_scripts { 21 | 'client/client.lua', 22 | } 23 | -------------------------------------------------------------------------------- /html/main.css: -------------------------------------------------------------------------------- 1 | /** General Selectors*/ 2 | body { 3 | width: 100%; 4 | overflow: hidden; 5 | font-family: 'Oswald', sans-serif; 6 | } 7 | /** General Selectors*/ 8 | 9 | /*? ID Selector */ 10 | #StatusHud 11 | { 12 | position: absolute; 13 | bottom: 0.7vh; 14 | left: 0.7vh; 15 | } 16 | /*? ID Selectors */ 17 | 18 | 19 | /*! Class Selectors */ 20 | .statback 21 | { 22 | background-color: rgba(0, 0, 0, 0.767); 23 | color: white; 24 | padding: 0.7vh; 25 | text-align: center; 26 | margin-top: 0.2vh; 27 | border-radius: 0.4vh; 28 | } 29 | .fas 30 | { 31 | font-size: 0.7rem; 32 | vertical-align: middle; 33 | } 34 | .textstat 35 | { 36 | width: 2vh; 37 | float: right; 38 | text-align: right; 39 | font-size: 1.0vh; 40 | margin-top: -0.25vh; 41 | } 42 | .red 43 | { 44 | width: 2.2vh; 45 | float: right; 46 | padding-left: 0.5vh; 47 | text-align: right; 48 | font-size: 1.0vh; 49 | color: red; 50 | } 51 | /*! Class Selectors */ 52 | -------------------------------------------------------------------------------- /html/script.js: -------------------------------------------------------------------------------- 1 | window.addEventListener('message', function (event) { 2 | $("#StatusHud #stress").hide() 3 | $("#StatusHud #playerid").hide() 4 | $("#StatusHud #fuel").hide() 5 | let data = event.data 6 | loadStats = function(){ 7 | $('#shieldval').html(Math.round(data.armour)) 8 | $('#hungerlevel').html(Math.round(data.food)) 9 | $('#waterlevel').html(Math.round(data.thirst)) 10 | $('#stresslevel').html(Math.round(data.stress)) 11 | $('#playeridlevel').html(Math.round(data.playerid)) 12 | $('#fuellevel').html(Math.round(data.fuel)) 13 | } 14 | if (data.hud && !data.pauseMenu){ 15 | $("body").show(); 16 | if (data.health != -100){ 17 | $('#healtlevel').html(Math.round(data.health)) 18 | if (data.health < 50 ){ 19 | $('#healtlevel').addClass('red') 20 | }else{ 21 | $('#healtlevel').removeClass('red') 22 | } 23 | }else if(data.health == -100){ 24 | $('#healtlevel').html("0") 25 | $('#healtlevel').addClass('red') 26 | } 27 | if(data.hudPosition == 'right'){ 28 | $("#StatusHud").animate({"left": '28vh', "bottom":'3vh'},200 ); 29 | }else{ 30 | $("#StatusHud").animate({"left": '0.7vh', "bottom":'0.7vh'},350 ); 31 | } 32 | if(data.fuelPosition == 'right'){ 33 | $("#StatusHud #fuel").show() 34 | }else{ 35 | $("#StatusHud #fuel").hide() 36 | } 37 | loadStats(); 38 | if (data.stress) { 39 | $("#StatusHud #stress").show() 40 | }else if(!data.stress){ 41 | $("#StatusHud #stress").hide() 42 | } 43 | if (data.playerid) { 44 | $("#StatusHud #playerid").show() 45 | }else if(!data.playerid){ 46 | $("#StatusHud #playerid").hide() 47 | } 48 | } 49 | }); 50 | -------------------------------------------------------------------------------- /html/ui.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 |