[Library] Health, Stamina and Dead-Eye

image

About

This library is designed to manage health, stamina, and dead-eye cores in RedM using percentage values. It allows you to set inner and/or outer cores using relative values, as opposed to in-game static values that vary based on core level and inner core value offset.

Usage Example

image

All values are expressed as percentages between 0 and 100. Here’s how you can use the library:

exports['redm-cores']:setInnerCoreHealth(50)
exports['redm-cores']:setOuterCoreHealth(50)
local value = exports['redm-cores']:getInnerCoreHealth() -- 50
local value = exports['redm-cores']:getOuterCoreHealth() -- 50

exports['redm-cores']:setInnerCoreStamina(50)
exports['redm-cores']:setOuterCoreStamina(50)
local value = exports['redm-cores']:getInnerCoreStamina() -- 50
local value = exports['redm-cores']:getOuterCoreStamina() -- 50

exports['redm-cores']:setInnerCoreDeadEye(50)
exports['redm-cores']:setOuterCoreDeadEye(50)
local value = exports['redm-cores']:getInnerCoreDeadEye() -- 50
local value = exports['redm-cores']:getOuterCoreDeadEye() -- 50

Config file:

Config.PlayerHealthOuterCoreLevel = 10
Config.PlayerStaminaOuterCoreLevel = 10
Config.PlayerDeadEyeOuterCoreLevel = 10

Download

You can download this library from GitHub.


Check out our paid releases as well:

[PAID] Hunter’s Bear Trap | Tebex | YouTube

image


Made with :heart_on_fire: by

image

8 Likes

how to Regenerary HealthOuterCore ? for me it no Regenerary

On my side it does recharge:

image

image

You can manually enable recharging, try one of these natives:

SetPlayerHealthRechargeMultiplier(PlayerId(), 1.0)
SetHealthRechargeMultiplier(PlayerPedId(), 1.0)
1 Like

thx I got it.

Nice work !
Can I integrate your work in jo_libs ?

Thank you, sure yes - it will be really cool if you do that!

1 Like