_SET_DEFENSE_MODIFIER_FOR_PED
Sets the defense modifier of ped, scaling the damage it takes.
Signature
void _SET_DEFENSE_MODIFIER_FOR_PED(Ped ped, float modifier); // 0x9B6808EC46BE849B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | modifier | float |
Facts
| Name | _SET_DEFENSE_MODIFIER_FOR_PED |
|---|---|
| Hash | 0x9B6808EC46BE849B |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x9B6808EC46BE849B, -- _SET_DEFENSE_MODIFIER_FOR_PED
PlayerPedId(), -- Ped ped
0.0 -- float modifier
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x9B6808EC46BE849B", // _SET_DEFENSE_MODIFIER_FOR_PED
PlayerPedId(), // Ped ped
0.0 // float modifier
);Function.Call((Hash)0x9B6808EC46BE849B, // _SET_DEFENSE_MODIFIER_FOR_PED
API.PlayerPedId(), // Ped ped
0.0f // float modifier
);Related PED natives
- _SET_CURRENT_DEFENSE_AGAINST_PLAYERS_MODIFIER
- _SET_PED_ANIMAL_DETECTION_MODIFIER
- _SET_PED_DESIRED_LOCO_FOR_MODEL
- _SET_PED_LADDER_MOVEMENT_SPEED_MODIFIER
- _SET_PED_MOTIVATION_MODIFIER
- _SET_PLAYER_ANTAGONIZE_DISABLED_FOR_PED
- _SET_PLAYER_GREET_DISABLED_FOR_PED
- _DOES_META_PED_OUTFIT_EXIST_FOR_PED_MODEL
- _DOES_META_PED_SUBOUTFIT_EXIST_FOR_PED_MODEL
- _REFRESH_CARRIED_PED_FOR_PED
- SET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER
- _SET_ACCURACY_AGAINST_LOCAL_PLAYER_MODIFIER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.