Game code
ENTITY::SET_ENTITY_HEALTH
0x742054EA53D89812 ·RVA 0x03C13BE0
Signature
void SET_ENTITY_HEALTH(
Entity entity,
u16 healthAmount,
Entity entityKilledBy,
BOOL p3,
BOOL p4
);
The scripts pass 7 values to this native; the decoded signature lists 5 (arguments the game doesn't read are left out).
Parameters 5
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Entity | entity |
– |
| 1 | u16 | healthAmount |
– |
| 2 | Entity | entityKilledBy |
– |
| 3 | BOOL | p3 |
– |
| 4 | BOOL | p4 |
– |
Returns
void Nothing.
Notes
- Names from RDR3; types from the game code, which differs from RDR3's signature:
- p3 is not in RDR3's signature; the game reads it as a true/false value.
- p4 is not in RDR3's signature; the game reads it as a true/false value.
Call it
// ENTITY::SET_ENTITY_HEALTH
invoke<Void>(0x742054EA53D89812, entity, healthAmount, entityKilledBy, p3, p4);// ENTITY::SET_ENTITY_HEALTH
Function.Call((Hash)0x742054EA53D89812, entity, healthAmount, entityKilledBy, p3, p4);-- ENTITY::SET_ENTITY_HEALTH
Citizen.InvokeNative(0x742054EA53D89812, entity, healthAmount, entityKilledBy, p3, p4)// ENTITY::SET_ENTITY_HEALTH
Citizen.invokeNative("0x742054EA53D89812", entity, healthAmount, entityKilledBy, p3, p4);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.