Game code
OBJECT::GET_OBJECT_FRAGMENT_DAMAGE_HEALTH
0x6472FA69490402F8 ·RVA 0x04C13860
Signature
float GET_OBJECT_FRAGMENT_DAMAGE_HEALTH(
Entity p0,
BOOL p1,
BOOL p2
);
The scripts pass 4 values to this native; the decoded signature lists 3 (arguments the game doesn't read are left out).
Parameters 3
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Entity | p0 |
RDR3 doesn't give a type; the game reads it as a true/false value. |
| 1 | BOOL | p1 |
– |
| 2 | BOOL | p2 |
– |
Returns
float
Notes
- Names from RDR3; types from the game code, which differs from RDR3's signature:
- p0 is not in RDR3's signature; the game reads it as a 16-byte value, and the game uses it as an entity handle.
Call it
// OBJECT::GET_OBJECT_FRAGMENT_DAMAGE_HEALTH
auto result = invoke<float>(0x6472FA69490402F8, p0, p1, p2);// OBJECT::GET_OBJECT_FRAGMENT_DAMAGE_HEALTH
float result = Function.Call<float>((Hash)0x6472FA69490402F8, p0, p1, p2);-- OBJECT::GET_OBJECT_FRAGMENT_DAMAGE_HEALTH
local result = Citizen.InvokeNative(0x6472FA69490402F8, p0, p1, p2)// OBJECT::GET_OBJECT_FRAGMENT_DAMAGE_HEALTH
const result = Citizen.invokeNative("0x6472FA69490402F8", p0, p1, p2);Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.
Improve this page
Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.