For the complete documentation index, see llms.txt. This page is also available as Markdown.

qbx_medical


1. Open the file

Open the following file: qbx_medical/client/main.lua

2. Restore Visual Effects After Heal

Find the resetMinorInjuries function and add the highlighted lines inside it.

This restores the active VMS Needs visual effect after the ambulance job removes or replaces the current screen effect. Player statuses, alcohol, and substance effects are not reset.

local function resetMinorInjuries()
    -- Your existing code...

    -- ===== VMS Needs =====
    if GetResourceState('vms_needs') == 'started' then
        exports['vms_needs']:ReloadVisualEffect()
    end
    -- =====================
end

3. Restore Player Statuses After Revive

Find the resetAllInjuries function and add the highlighted lines inside it.

This restores hunger and thirst to at least 50% after a hospital respawn and clears the configured alcohol and substance statuses.

Last updated