_SET_DAMAGE_CLOSE_DISTANCE_BONUS
Sets the close-range distance band for the damage bonus of player.
Signature
void _SET_DAMAGE_CLOSE_DISTANCE_BONUS(Player player, float closeRangeLowerBound, float closeRangeUpperBound); // 0x7761A30432C91297 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | closeRangeLowerBound | float |
| 3 | closeRangeUpperBound | float |
Facts
| Name | _SET_DAMAGE_CLOSE_DISTANCE_BONUS |
|---|---|
| Hash | 0x7761A30432C91297 |
| 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(0x7761A30432C91297, -- _SET_DAMAGE_CLOSE_DISTANCE_BONUS
PlayerId(), -- Player player
0.0, -- float closeRangeLowerBound
0.0 -- float closeRangeUpperBound
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x7761A30432C91297", // _SET_DAMAGE_CLOSE_DISTANCE_BONUS
PlayerId(), // Player player
0.0, // float closeRangeLowerBound
0.0 // float closeRangeUpperBound
);Function.Call((Hash)0x7761A30432C91297, // _SET_DAMAGE_CLOSE_DISTANCE_BONUS
API.PlayerId(), // Player player
0.0f, // float closeRangeLowerBound
0.0f // float closeRangeUpperBound
);Related PLAYER natives
- _SET_DAMAGE_CLOSE_DISTANCE_BONUS_TOTAL
- _SET_DAMAGE_FAR_DISTANCE_BONUS
- _SET_DAMAGE_FAR_DISTANCE_BONUS_TOTAL
- _SET_PLAYER_DAMAGE_INFO_OVERRIDE
- _SET_PLAYER_EXPLOSIVE_WEAPON_DAMAGE_MODIFIER
- _SET_PLAYER_LASSO_DAMAGE_PER_SECOND
- _SET_PLAYER_TRAMPLE_DAMAGE_MODIFIER
- _SET_PLAYER_WEAPON_GROUP_DAMAGE_MODIFIER
- _SET_RECEIVED_DAMAGE_TAKEN_ON_HORSEBACK_MODIFIER
- _EAGLE_EYE_SET_CUSTOM_DISTANCE
- SET_PLAYER_MELEE_WEAPON_DAMAGE_MODIFIER
- SET_PLAYER_WEAPON_DAMAGE_MODIFIER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.