RedM Natives

COMPUTE_SATCHEL_ITEM_FOR_PED_DAMAGE

Hash0x9E7738B291706746
Runtime nameComputeSatchelItemForPedDamage
NamespacePED
SideClient
NameOfficial
Docs
Since build1207

Signature

BOOL COMPUTE_SATCHEL_ITEM_FOR_PED_DAMAGE(Any p0, Ped pedAttached, int damageCleanliness);

Parameters

NameTypeDescription
p0Any—
pedAttachedPed—
damageCleanlinessint—

Returns BOOL

Usage

Lua
local retval = ComputeSatchelItemForPedDamage(p0, pedAttached, damageCleanliness)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9E7738B291706746, p0, pedAttached, damageCleanliness, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = ComputeSatchelItemForPedDamage(p0, pedAttached, damageCleanliness);

// by hash
const retval = Citizen.invokeNative('0x9E7738B291706746', p0, pedAttached, damageCleanliness, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x9E7738B291706746, p0, pedAttached, damageCleanliness);

Sources

alloc8or RDR3 NativeDB

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