Freshly created RDR3 peds: full health = 600 (not 100/200); set HEALTH/STAMINA attribute cores (0/1) explicitly
Context
After CreatePed, an RDR3 ped's vitals need initializing — and RDR3's health scale differs from GTA. Full health is 600, and peds have separate attribute cores for health and stamina that you set explicitly (independent of SetEntityHealth).
The pattern (jo_libs)
local ped = CreatePed(model, vec4(0,0,0,0), networked)
SetAttributeCoreValue(ped, 0, 100) -- core 0 = HEALTH (0–100)
SetEntityHealth(ped, 600, 1) -- 600 = full RDR3 health (NOT 100/200)
SetAttributeCoreValue(ped, 1, 100) -- core 1 = STAMINA (0–100)
Traps
- Full health is 600, not 100/200. Carrying over the GTA habit (
SetEntityHealth(ped, 100)) leaves the ped near-dead. - Attribute cores are separate from health: index
0= HEALTH,1= STAMINA, range0–100, set viaSetAttributeCoreValue. Setting health alone doesn't fill the cores. - jo passes
SetEntityHealth's 3rd arg as1.
Caveat — don't copy the stamina line
jo's next line is RestorePedStamina(ped, 1065330373). That value contradicts the documented 0.0–100.0 range for _RESTORE_PED_STAMINA (1065330373 ≈ the float bit-pattern of ~1.0) and looks like a quirk/bug — prefer SetAttributeCoreValue(ped, 1, 100) for stamina instead.
Verified
entity/client.lua:140-143.
Tags: ped, health, attribute-core, setentityhealth, stamina, spawn
Category: natives
Source: jo_libs-fleet
Created: 2026-05-31T09:51:00.542Z