Skip to main content

ox_Inventory, fatal injury/cannot open inventory/cannot use items/weapons

T
Written by Tim Plate
Updated today

The line numbers are not binding and may vary depending on the version and source

Go to your ox_Inventory Folder and open the client.lua

You have to do the following changes:

Line 57-59

    if PlayerData.dead or IsPedFatallyInjured(playerPed) then
return shared.info('cannot open inventory', '(fatal injury)')
end

replace it with

    if exports["visn_are"]:GetHealthBuffer().unconscious then
return shared.info('cannot open inventory', '(fatal injury)')
end

Line 71

    return IsPedFatallyInjured(ped)

replace it with

    return exports["visn_are"]:GetHealthBuffer().unconscious

Line 389 and 413

    and not PlayerData.dead

replace it with

    and not exports["visn_are"]:GetHealthBuffer().unconscious
Did this answer your question?