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
- 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
-
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)
- 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)
- Compass was made standalone to reduce (ms) on hud https://github.com/loljoshie/lj-compass
- 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
map.switch.mp4
- 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
- Reworked overall stress
- Fixed stress screen effects
- Added more configurable stress options
- Clean up events and deleted seperate stress lua
- More optimization
- 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
- 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
- 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
- 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
- Initial release
- In-game menu
- Cooldown radial option for minigames
- Battery radial option for radio
- More optimization shit
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.