example
example

求助 怎么修改绷带或者wasabi急救包的治疗量

susu

用户
认证用户
黄金
122.84 黄金
框架esx 使用背包ox
 
S

还可以输入20字数。
领取红包用户
xieron B
感谢楼主的红包!

xieron领取了您的红包获得了2.33黄金
 
绷带的恢复是直接调用的ox背包,所以要改的话要去ox背包改
急救包的话,找到wasabi_ambulance:heal这个事件,在这里面改

找到这段代码去进行修改
Lua:
RegisterNetEvent('wasabi_ambulance:heal', function(full, quiet)
    local ped = wsb.cache.ped
    local maxHealth = 200
    if not full then
        local health = GetEntityHealth(ped)
        local newHealth = math.min(maxHealth, math.floor(health + maxHealth / 8))
        SetEntityHealth(ped, newHealth + 0.0)
    else
        SetEntityHealth(ped, maxHealth + 0.0)
        if wsb.framework == 'qb' then
            TriggerServerEvent('hospital:server:resetHungerThirst')
            TriggerServerEvent('hud:server:RelieveStress', 100)
        end
    end
    if Config.MythicHospital then
        TriggerEvent('mythic_hospital:client:RemoveBleed')
        TriggerEvent('mythic_hospital:client:ResetLimbs')
    end
    if Config.EnableLiveInjury and full then ClearPatientSymptoms() end
    if not quiet then
        TriggerEvent('wasabi_bridge:notify', Strings.player_successful_heal, Strings.player_healed_desc, 'success')
    end
    if Config.EMSItems.heal.healBleed and next(PlayerInjury) then
        for _, injury in pairs(PlayerInjury) do
            if injury.data.bleed > 0 then
                injury.data.bleed = 0
            end
        end
        TriggerServerEvent('wasabi_ambulance:injurySync', PlayerInjury)
    end
end)
 
感谢楼主的红包!

Bling领取了您的红包获得了4.01黄金
 
后退
顶部