_COMPUTE_LOOT_FOR_PED_CARCASS
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
int _COMPUTE_LOOT_FOR_PED_CARCASS(Any* outLoot, Hash model, int damageCleanliness, int skinningQuality); // 0xB29C553BA582D09E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | outLoot | Any* (out pointer) |
| 2 | model | Hash |
| 3 | damageCleanliness | int |
| 4 | skinningQuality | int |
Facts
| 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.
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)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)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>();Related PED natives
- _COMPUTE_SATCHEL_ITEM_FOR_PED_CARCASS
- _COMPUTE_PED_MOVE_BLEND_RATIO_FOR_MAX_SPEED
- _COMPUTE_SPEED_FOR_PED_MOVE_BLEND_RATIO
- _DOES_META_PED_OUTFIT_EXIST_FOR_PED_MODEL
- _DOES_META_PED_SUBOUTFIT_EXIST_FOR_PED_MODEL
- _REFRESH_CARRIED_PED_FOR_PED
- _REFRESH_LOOT_STATE_FOR_PED
- COMPUTE_SATCHEL_ITEM_FOR_PED_DAMAGE
- _CAN_PED_HEAR_TARGET_PED
- _CLEAR_PED_DESIRED_LOCO_FOR_MODEL
- _CREATE_META_PED_OUTFIT_PED
- _APPLY_PED_META_PED_OUTFIT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.