#how to remove status flattened / ran over / ran down

1 messages · Page 1 of 1 (latest)

red parrot
#

i cant seem to find how to remove the status flattened ectect that pops up when you die ect

blazing marsh
#

Remove any calls to chat:addMessage

red parrot
#

where would this be relating to the falttened? qb-ambulancejob?

blazing marsh
#

Yes

red parrot
#

if i remove them surely thecheck status in radial wont work?

#

RegisterNetEvent('hospital:client:CheckStatus', function()
local player, distance = GetClosestPlayer()
if player ~= -1 and distance < 5.0 then
local playerId = GetPlayerServerId(player)
QBCore.Functions.TriggerCallback('hospital:GetPlayerStatus', function(result)
if result then
for k, v in pairs(result) do
if k ~= 'BLEED' and k ~= 'WEAPONWOUNDS' then
statusChecks[#statusChecks + 1] = {
bone = Config.BoneIndexes[k],
label = v.label .. ' (' .. Config.WoundStates[v.severity] .. ')'
}
elseif result['WEAPONWOUNDS'] then
for _, v2 in pairs(result['WEAPONWOUNDS']) do
TriggerEvent('chat:addMessage', {
color = { 255, 0, 0 },
multiline = false,
args = { Lang:t('info.status'), QBCore.Shared.Weapons[v2].damagereason }
})
end
elseif result['BLEED'] > 0 then
TriggerEvent('chat:addMessage', {
color = { 255, 0, 0 },
multiline = false,
args = { Lang:t('info.status'),
Lang:t('info.is_status', { status = Config.BleedingStates[v].label }) }
})
else
QBCore.Functions.Notify(Lang:t('success.healthy_player'), 'success')
end
end
isStatusChecking = true
Status()
end
end, playerId)
else
QBCore.Functions.Notify(Lang:t('error.no_player'), 'error')
end
end)

blazing marsh
#

No, it's not checking it by reading the chat message that is added - and that's the part you asked how to remove.

austere fog
#

Or put menu or something to shows status

red parrot
austere fog
#

Just use this


RegisterNetEvent('hospital:client:CheckStatus', function()
    local player, distance = GetClosestPlayer()
    if player ~= -1 and distance < 5.0 then
        local playerId = GetPlayerServerId(player)
        QBCore.Functions.TriggerCallback('hospital:GetPlayerStatus', function(result)
            if result then
                for k, v in pairs(result) do
                    if k ~= 'BLEED' and k ~= 'WEAPONWOUNDS' then
                        statusChecks[#statusChecks + 1] = {
                            bone = Config.BoneIndexes[k],
                            label = v.label .. ' (' .. Config.WoundStates[v.severity] .. ')'
                        }
                    elseif result['WEAPONWOUNDS'] then
                        for _, v2 in pairs(result['WEAPONWOUNDS']) do
                            QBCore.Functions.Notify(Lang:t('info.status') .. ': ' .. QBCore.Shared.Weapons[v2].damagereason, 'error')
                        end
                    elseif result['BLEED'] > 0 then
                        QBCore.Functions.Notify(Lang:t('info.status') .. ': ' .. Lang:t('info.is_status', { status = Config.BleedingStates[v].label }), 'error')
                    else
                        QBCore.Functions.Notify(Lang:t('success.healthy_player'), 'success')
                    end
                end
                isStatusChecking = true
                Status()
            end
        end, playerId)
    else
        QBCore.Functions.Notify(Lang:t('error.no_player'), 'error')
    end
end)

#

It shows notify

#

And put the resolved tag if its done

red parrot
red parrot
austere fog
thick jetty
red parrot
thick jetty
#

Put this in client side

austere fog
thick jetty
#

Overwrite it

austere fog
#

What the problem that in video

thick jetty
#

Remove any calls to chat:addMessage as MadCapz said previously you need to remove these occurences

austere fog
thick jetty
#

Client/main.lua

Delete highlighted code

#

job.lua

delete highlighted code

austere fog
thick jetty
#

The problem is he is getting the chat message "flattened" and so on

#

He doesn't want that

austere fog
thick jetty
red parrot
austere fog
thick jetty
#

No worries Stan, we all got some priorities if you know what I mean, just want to help you out

red parrot
red parrot
#

works but cant revive

red parrot
red parrot