GET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER
Hash
0x936E7CAD0AE2EE14Runtime name
GetPedToPlayerWeaponDamageModifierNamespacePED
SideClient
NameOfficial
Docs
Since build1207
Signature
float GET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns float
Usage
local retval = GetPedToPlayerWeaponDamageModifier(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x936E7CAD0AE2EE14, ped, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetPedToPlayerWeaponDamageModifier(ped);
// by hash
const retval = Citizen.invokeNative('0x936E7CAD0AE2EE14', ped, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x936E7CAD0AE2EE14, ped);See also
SET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIEROld name: _SET_PED_DAMAGE_MODIFIER
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.