_GET_PLAYER_WEAPON_DAMAGE
Returns the damage player deals with weaponHash.
Signature
float _GET_PLAYER_WEAPON_DAMAGE(Player player, Hash weaponHash); // 0xFE0304050261442C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | weaponHash | Hash |
Facts
| Name | _GET_PLAYER_WEAPON_DAMAGE |
|---|---|
| Hash | 0xFE0304050261442C |
| Namespace | |
| Returns | float |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xFE0304050261442C, -- _GET_PLAYER_WEAPON_DAMAGE
PlayerId(), -- Player player
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
Citizen.ResultAsFloat()
)
print(result)const result = Citizen.invokeNative("0xFE0304050261442C", // _GET_PLAYER_WEAPON_DAMAGE
PlayerId(), // Player player
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
Citizen.resultAsFloat()
);
console.log(result)float result = Function.Call<float>((Hash)0xFE0304050261442C, // _GET_PLAYER_WEAPON_DAMAGE
API.PlayerId(), // Player player
(uint)API.GetHashKey("weapon_revolver_cattleman") // Hash weaponHash
);Related PLAYER natives
- _GET_PLAYER_CACHED_DEAD_EYE_AMOUNT
- _GET_PLAYER_DEAD_EYE
- _GET_PLAYER_DEAD_EYE_METER_LEVEL
- _GET_PLAYER_FREE_AIM_CLOSEST_ENTITY
- _GET_PLAYER_HEALTH
- _GET_PLAYER_HEALTH_RECHARGE_MULTIPLIER
- _GET_PLAYER_HUNTING_WAGON
- _GET_PLAYER_INTERACTION_AIM_ENTITY
- _GET_PLAYER_MAX_DEAD_EYE
- _GET_PLAYER_MOOD
- _GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD
- _GET_PLAYER_OWNER_OF_MOUNT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.