The Lab
PED native

_COMPUTE_LOOT_FOR_PED_CARCASS

returns int4 paramsbuild 1207

Computes the loot a carcass of model model would give for the given damage cleanliness and skinning quality, writing it to outLoot and returning the item count.

Signature

C
int _COMPUTE_LOOT_FOR_PED_CARCASS(Any* outLoot, Hash model, int damageCleanliness, int skinningQuality); // 0xB29C553BA582D09E b1207

Parameters

#NameType
1outLootAny* (out pointer)
2modelHash
3damageCleanlinessint
4skinningQualityint

Facts

Facts about _COMPUTE_LOOT_FOR_PED_CARCASS
Name
_COMPUTE_LOOT_FOR_PED_CARCASS
Hash
0xB29C553BA582D09E
Namespace
Returns
int
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, outLoot = Citizen.InvokeNative(0xB29C553BA582D09E, -- _COMPUTE_LOOT_FOR_PED_CARCASS
  Citizen.PointerValueInt(), -- Any* outLoot
  GetHashKey("a_c_horse_arabian_white"), -- Hash model
  0, -- int damageCleanliness
  0, -- int skinningQuality
  Citizen.ResultAsInteger()
)
print(result, outLoot)
JavaScript
const [result, outLoot] = Citizen.invokeNative("0xB29C553BA582D09E", // _COMPUTE_LOOT_FOR_PED_CARCASS
  Citizen.pointerValueInt(), // Any* outLoot
  GetHashKey("a_c_horse_arabian_white"), // Hash model
  0, // int damageCleanliness
  0, // int skinningQuality
  Citizen.resultAsInteger()
);
console.log(result, outLoot)
C#
var outLootArg = new OutputArgument();
int result = Function.Call<int>((Hash)0xB29C553BA582D09E, // _COMPUTE_LOOT_FOR_PED_CARCASS
  outLootArg, // Any* outLoot
  (uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash model
  0, // int damageCleanliness
  0 // int skinningQuality
);
int outLoot = outLootArg.GetResult<int>();
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.