C# - Doc Metabolism player Stamina + Health max

Hey everyone,

I’m currently trying to figure out how to increase a player’s max health and stamina in RedM.

I’ve been experimenting with the native functions related to attributes, and here’s what I’ve tested so far:

Natives.SetAttributeBaseRank(ped, 0, value);       // Health Rank ?
Natives.SetAttributeBaseRank(ped, 1, value);      // Stamina (0–10 scale?)

Natives.SetAttributePoints(ped, 0, value);       // Health points ?
Natives.SetAttributePoints(ped, 1, value);       // Stamina points ?

Natives.SetAttributeBonusRank(ped, 1, value);    // Additional bonus! ok

Natives.SetAttributeCoreValue(ped, 0, value);    // Core Health

But no matter what I set here, the actual max health and stamina values don’t seem to increase visibly in-game.

Any help or insight would be appreciated. Thanks!

https://rdr3natives.com/?_0xF5F6378C4F3419D3

https://rdr3natives.com/?_0x35594F67


Should do what you’re after.

I dont understand i crash with

        //Natives.SetPlayerMaxStamina();
        Natives.Call(0x35594F67, Natives.PlayerId(), 100.0f);