RedM Natives

GET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER

Hash0x936E7CAD0AE2EE14
Runtime nameGetPedToPlayerWeaponDamageModifier
NamespacePED
SideClient
NameOfficial
Docs
Since build1207

Signature

float GET_PED_TO_PLAYER_WEAPON_DAMAGE_MODIFIER(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns float

Usage

Lua
local retval = GetPedToPlayerWeaponDamageModifier(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x936E7CAD0AE2EE14, ped, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetPedToPlayerWeaponDamageModifier(ped);

// by hash
const retval = Citizen.invokeNative('0x936E7CAD0AE2EE14', ped, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x936E7CAD0AE2EE14, ped);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.