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

esx_ambulancejob


1. Open the file

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

2. Restore Visual Effects After Revive

Find the esx_ambulancejob:revive event 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.

RegisterNetEvent('esx_ambulancejob:revive')
AddEventHandler('esx_ambulancejob:revive', function()
    -- Your existing code...

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

3. Restore Player Statuses After Hospital Respawn

Find the RemoveItemsAfterRPDeath 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