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

wasabi_ambulance_v2


1. Open the file

Open the following file: wasabi_ambulance_v2/bridge/framework/YOUR_FRAMEWORK/server.lua

Find bridge.resetPlayerNeeds function and replace it.

This restores hunger and thirst to at least 50%.

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

Last updated