The Lab
PED native

_SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER

returns Any4 paramsbuild 1311

Sets the damage modifier applied to animals attacked by player.

Signature

C
Any _SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER(Player player, float modifier, int p2, int p3); // 0x9EFF3C91DF38304F b1311

Parameters

#NameType
1playerPlayer
2modifierfloat
3p2int
4p3int

Facts

Facts about _SET_PLAYER_CURRENT_ANIMAL_DAMAGE_MODIFIER
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.

Lua
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)
JavaScript
// 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)
C#
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
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.