_SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER
Sets the damage modifier applied to animals attacked by player.
Signature
Any _SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER(Player player, float modifier, int p2, int p3); // 0x9EFF3C91DF38304F b1311Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | modifier | float |
| 3 | p2 | int |
| 4 | p3 | int |
Facts
| Name | _SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER |
|---|---|
| Hash | 0x9EFF3C91DF38304F |
| Namespace | |
| Returns | Any |
| Game build | 1311 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x9EFF3C91DF38304F, -- _SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER
PlayerId(), -- Player player
0.0, -- float modifier
0, -- int p2
0, -- int p3
Citizen.ResultAsInteger()
)
print(result)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x9EFF3C91DF38304F", // _SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER
PlayerId(), // Player player
0.0, // float modifier
0, // int p2
0, // int p3
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x9EFF3C91DF38304F, // _SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER
API.PlayerId(), // Player player
0.0f, // float modifier
0, // int p2
0 // int p3
);Related PED natives
- _GET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER
- SET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER
- _SET_PED_ANIMAL_DETECTION_MODIFIER
- _SET_ACCURACY_AGAINST_LOCAL_PLAYER_MODIFIER
- _SET_CURRENT_DEFENSE_AGAINST_PLAYERS_MODIFIER
- _SET_PLAYER_ANTAGONIZE_DISABLED_FOR_PED
- _SET_PLAYER_DISMOUNT_TIMESTAMP
- _SET_PLAYER_GREET_DISABLED_FOR_PED
- _UPDATE_ANIMAL_DAMAGE_MODIFIER
- GET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER
- SET_AI_MELEE_WEAPON_DAMAGE_MODIFIER
- SET_AI_WEAPON_DAMAGE_MODIFIER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.