if LocalPlayer.state.inDeathmatch == true then return end
your event should look like this:
in qbx_medical/client/wounding.lua CTRL + F and look for:
local level = getWorstInjury()
replace whole thread this:
local wait = 1000
CreateThread(function()
while true do
if not LocalPlayer.state.inDeathmatch then
if NumInjuries > 0 then
local level = getWorstInjury()
SetPedMoveRateOverride(cache.ped, sharedConfig.woundLevels[level].movementRate)
wait = 5
else
wait = 1000
end
end
Wait(wait)
end
end)
in qbx_medical/client/wounding.lua CTRL + F and look for:
line somewhere around 157
if enableBleeding then
replace whole thread with this
CreateThread(function()
Wait(2500)
while true do
Wait(1000)
if not LocalPlayer.state.inDeathmatch then
if enableBleeding then
checkBleeding()
end
end
end
end)
in qbx_medical/client/damage.lua CTRL + F and look for:
line somewhere around 223
if damageEffectsEnabled then
replace whole thread with this
CreateThread(function()
while true do
if not LocalPlayer.state.inDeathmatch then
checkForDamage()
if damageEffectsEnabled then
ApplyDamageEffects()
end
end
Wait(100)
end
end)