The Lab
PLAYER native

_SET_DAMAGE_FAR_DISTANCE_BONUS_TOTAL

returns void2 paramsbuild 1207

Sets the damage bonus player gets at long range.

Signature

C
void _SET_DAMAGE_FAR_DISTANCE_BONUS_TOTAL(Player player, float farDamageBonus); // 0x1F0E3A4434565F8F b1207

Parameters

#NameType
1playerPlayer
2farDamageBonusfloat

Facts

Facts about _SET_DAMAGE_FAR_DISTANCE_BONUS_TOTAL
Name
_SET_DAMAGE_FAR_DISTANCE_BONUS_TOTAL
Hash
0x1F0E3A4434565F8F
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(0x1F0E3A4434565F8F, -- _SET_DAMAGE_FAR_DISTANCE_BONUS_TOTAL
  PlayerId(), -- Player player
  0.0 -- float farDamageBonus
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x1F0E3A4434565F8F", // _SET_DAMAGE_FAR_DISTANCE_BONUS_TOTAL
  PlayerId(), // Player player
  0.0 // float farDamageBonus
);
C#
Function.Call((Hash)0x1F0E3A4434565F8F, // _SET_DAMAGE_FAR_DISTANCE_BONUS_TOTAL
  API.PlayerId(), // Player player
  0.0f // float farDamageBonus
);
All PLAYER natives

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