The Lab
PLAYER native

_SET_DAMAGE_CLOSE_DISTANCE_BONUS_TOTAL

returns void2 paramsbuild 1207

Sets the damage bonus player gets at close range.

Signature

C
void _SET_DAMAGE_CLOSE_DISTANCE_BONUS_TOTAL(Player player, float closeDamageBonus); // 0x5006C36652D6EC56 b1207

Parameters

#NameType
1playerPlayer
2closeDamageBonusfloat

Facts

Facts about _SET_DAMAGE_CLOSE_DISTANCE_BONUS_TOTAL
Name
_SET_DAMAGE_CLOSE_DISTANCE_BONUS_TOTAL
Hash
0x5006C36652D6EC56
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x5006C36652D6EC56, -- _SET_DAMAGE_CLOSE_DISTANCE_BONUS_TOTAL
  PlayerId(), -- Player player
  0.0 -- float closeDamageBonus
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x5006C36652D6EC56", // _SET_DAMAGE_CLOSE_DISTANCE_BONUS_TOTAL
  PlayerId(), // Player player
  0.0 // float closeDamageBonus
);
C#
Function.Call((Hash)0x5006C36652D6EC56, // _SET_DAMAGE_CLOSE_DISTANCE_BONUS_TOTAL
  API.PlayerId(), // Player player
  0.0f // float closeDamageBonus
);
All PLAYER natives

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