Git Product home page Git Product logo

lj-hud's Introduction

LJ HUD

lj-hud used with QBCore Framework

Join my Discord laboratory for updates, support, and special early testing!
https://discord.gg/loljoshie

Remade and improved off an earlier existing qb-hud and given permission from the original developer.
Runs at ~ 0.04 to 0.09 ms if you have more optimization suggestions feel free to reach out

Dependencies

Installation

  • IMPORTANT: FOLLOW FIRST STEP: Or there WILL be errors
  • IMPORTANT: If you're using lj-fuel you NEED to change LegacyFuel exports to lj-fuel

qb-smallresources

  • find file in "qb-smallresources/client/seatbelt.lua" and DELETE IT

  • find this in "qb-smallresources/server/main.lua" and DELETE THE SNIPPETS (harness/seat belt client and server side funtions are now all in the hud)

QBCore.Functions.CreateUseableItem("harness", function(source, item)
    local src = source
    local Player = QBCore.Functions.GetPlayer(src)
    TriggerClientEvent('seatbelt:client:UseHarness', src, item)
end)

RegisterNetEvent('equip:harness', function(item)
    local src = source
    local Player = QBCore.Functions.GetPlayer(src)
    if Player.PlayerData.items[item.slot].info.uses - 1 == 0 then
        TriggerClientEvent("inventory:client:ItemBox", src, QBCore.Shared.Items['harness'], "remove")
        Player.Functions.RemoveItem('harness', 1)
    else
        Player.PlayerData.items[item.slot].info.uses = Player.PlayerData.items[item.slot].info.uses - 1
        Player.Functions.SetInventory(Player.PlayerData.items)
    end
end)

RegisterNetEvent('seatbelt:DoHarnessDamage', function(hp, data)
    local src = source
    local Player = QBCore.Functions.GetPlayer(src)

    if hp == 0 then
        Player.Functions.RemoveItem('harness', 1, data.slot)
    else
        Player.PlayerData.items[data.slot].info.uses = Player.PlayerData.items[data.slot].info.uses - 1
        Player.Functions.SetInventory(Player.PlayerData.items)
    end
end)

qb-adminmenu

  • find this in "qb-adminmenu/client/client.lua"
RegisterNetEvent('qb-admin:client:openMenu', function()
    MenuV:OpenMenu(menu)
end)
  • Put this above snippet:
local devmode = false

local menu_buttondev = menu11:AddCheckbox({
    icon = '',
    label = 'Dev Mode',
    value = menu2,
    description = 'Enable/Disable Developer Mode'
})

menu_buttondev:On('change', function(item, newValue, oldValue)
    devmode = not devmode
    TriggerEvent('qb-admin:client:ToggleDevmode')
    if devmode then
        while devmode do
            Citizen.Wait(200)
            SetPlayerInvincible(PlayerId(), true)
        end
            SetPlayerInvincible(PlayerId(), false)
    end
end)
(you can also do /dev in-game if you have rank "admin" or higher)

My Compass

lj-compass

Key Features

  • Harness mode (harness radial shows when you have the harness item and checks for uses left which updates on the radial)
  • Armed mode (weapons specifically whitelisted to not show armed mode)
  • Switch between square and circle map with in-game /circle or square
  • Cinematic Mode (fully hides hud)
  • Nitro when actived icon turns light red
  • When dead heath radial turns red
  • Dev mode radial when permission to do so (if you want dev mode working must follow instructions below)
  • Headset icon appears when connected to radio channel
  • Voice proximity and radio proximity highlighted
  • Radial icons realign
  • Seat belt equipped icon indicator
  • Oxygen
  • Stamina
  • Engine health orange and red icon indicator
  • Fuel low alert
  • Fuel gauge color changes
  • Harness equipped icon indicator
  • Minimap white borders

Previews

resource ms

resource ms

configurations found in lj-hud/config.lua and lj-hud/html/js/config.js

configs

circle or square map in-game

map.switch.mp4

circle or square map

map

all radial options

all circles

armed mode

armed mode

cinematic mode

cinematicmode

nopixel engine

np engine

new engine

new engine

oxygen

oxygen

radio headset

radio headset

active radio

radio active

nitro

nitro

active nitro

nitro active

Change Logs

3.4

  • Added new config for pma-voice specifically new and older versions
  • Removed seat belt lua
  • Added preset list of weapons whitelisted for armed mode - Seaqn
  • Rework harness mode
  • Added armed mode
  • Added armed mode whitelist options (makes sure that certain weapons aka "petrolcans" don't have radial indicator
  • Similar way of displaying cash is now the same for bank - WhoopsIJust
  • Added pma-voice 6.0+ support & older versions
  • Seperate stress for bikes - WhoopsIJust
  • Minor CSS changes
  • Still more to be added in this specific version, stay tuned

3.3

  • Reworked overall stress
  • Fixed stress screen effects
  • Added more configurable stress options
  • Clean up events and deleted seperate stress lua
  • More optimization

3.2

  • Made square map shorter like NP 3.0
  • Configurable map border outline
  • Configurable map notification status
  • Added seatbelt.lua within client folder
  • Synced stress - pushkart2

3.1

  • Added in-game command to switch between circle or square map
  • Fix outline border not syncing with change of map
  • Added highlight background for microphone and radio when active
  • Replace water icon
  • Changed some colors
  • More optimization

3.0

  • Added "Dynamic" show status feature
  • Added new javascript .config
  • Added colored maps rather than GTA defaults
  • Added option to switch between newer or older versions of QBCore
  • Added when dead health color changes
  • Added oxygen when underwater
  • Added stamina when sprinting or running
  • Added nitro active color
  • Added more configuration
  • Added new engine
  • Added speed values
  • Added bank command
  • Cleaned all files and added more informational context
  • More optimization

2.0

  • Added radio highlight color
  • Added radio icon when connected to channel
  • Added dev mode used either from admin menu or in-game command
  • Fixed nitrous radial showing without being installed
  • More optimization

1.0

  • Initial release

Future Updates

  • In-game menu
  • Cooldown radial option for minigames
  • Battery radial option for radio
  • More optimization shit

Issues and Suggestions

Please use the GitHub issues system to report issues or make suggestions, when making suggestion, please keep [Suggestion] in the title to make it clear that it is a suggestion.

lj-hud's People

Contributors

loljoshie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.