#Adding option to disable stress for all players

1 messages · Page 1 of 1 (latest)

molten forge
#

First head to qbx_hud/config/server.lua and under disableForLEO = true,
add

disableStress = true,

next head to qbx_hud/client/main.lua and search CreateThread(function() -- Speeding
ABOVE THAT at roughly line 797 add

if not config.stress.disableStress then

next head to qbx_hud/server/main.lua and search RegisterNetEvent('hud:server:GainStress', function(amount)
add the following at line 24

if config.stress.disableStress then return end

Directly below that you will see the event RegisterNetEvent('hud:server:RelieveStress', function(amount)
add the following at line 47

if config.stress.disableStress then return end

I have tested this on my server and it works with no errors. If you have an easier way/better way to do this feel free to give your ideas

supple rose
#

PR this to github

molten forge
#

just did

twin rivet
#

is this really that smart ?

#

there if statements pepeThink

#

im joking btw