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

wasabi_ambulance


1. Open the file

Open the following file: wasabi_ambulance/game/client/cl_customize.lua

Find wasabi_ambulance:resetStatus event and replace it.

This restores hunger and thirst to at least 50%.

RegisterNetEvent('wasabi_ambulance:resetStatus', function() -- Set your own custom hunger/thirst reset logic?
    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)
        end
        
        local thirst = exports['vms_needs']:GetPercentageStatus('thirst')
        if thirst < 50.0 then
            exports['vms_needs']:SetStatus('thirst', 250.0)
        end
        
        exports['vms_needs']:SetStatus('stress', 0.0)
    end
end)

Last updated