qbx_hud
1. Open the file
Open the following file: qbx_hud/client/main.lua
2. Remove unnecessary code
Find the hud:client:UpdateNeeds event and delete the entire block RegisterNetEvent.
Find the hud:client:UpdateStress event and delete the entire block RegisterNetEvent.
3. Modify code
Find the QBCore:Client:OnPlayerLoaded event and modify the highlighted lines inside it.
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
Wait(2000)
local hudSettings = GetResourceKvpString('hudSettings')
if hudSettings then loadSettings(json.decode(hudSettings)) end
stress = exports['vms_needs']:GetPercentageStatus('stress')
hunger = exports['vms_needs']:GetPercentageStatus('hunger')
thirst = exports['vms_needs']:GetPercentageStatus('thirst')
hp = QBX.PlayerData.metadata.health
end)Find the startWeaponStressThread function and modify the highlighted line inside it.
Find the Speeding thread and modify the highlighted line inside it.
Last updated