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

ars_ambulancejob


1. Open the file

Open the following file: ars_ambulancejob/modules/compatibility/frameworks/YOUR_FRAMEWORK/client.lua

2. Restore Player Statuses After Revive

Find the Framework.healStatus 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.

function Framework.healStatus()
    -- ===== VMS Needs =====
    if GetResourceState('vms_needs') == 'started' then
        local hunger = exports['vms_needs']:GetPercentageStatus('hunger')
        if hunger < 50.0 then
            exports['vms_needs']:SetStatus('hunger', 250.0) -- 250.0 = half
        end
                
        local thirst = exports['vms_needs']:GetPercentageStatus('thirst')
        if thirst < 50.0 then
            exports['vms_needs']:SetStatus('thirst', 250.0) -- 250.0 = half
        end
        
        exports['vms_needs']:SetStatus('stress', 0.0)
                
        exports['vms_needs']:CleanupOptionalStatuses()
    end
    -- =====================
end

Last updated