_REFRESH_LOOT_STATE_FOR_PED
Based on its name and signature, here is our best reading:
Appears to refresh the looting state of ped and write its loot target to lootTarget.
Signature
int _REFRESH_LOOT_STATE_FOR_PED(Ped ped, int p1, Ped* lootTarget, int p3, int p4); // 0x5463C962BC7777C3 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | p1 | int |
| 3 | lootTarget | Ped* (out pointer) |
| 4 | p3 | int |
| 5 | p4 | int |
Facts
| Name | _REFRESH_LOOT_STATE_FOR_PED |
|---|---|
| Hash | 0x5463C962BC7777C3 |
| 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, lootTarget = Citizen.InvokeNative(0x5463C962BC7777C3, -- _REFRESH_LOOT_STATE_FOR_PED
PlayerPedId(), -- Ped ped
0, -- int p1
Citizen.PointerValueInt(), -- Ped* lootTarget
0, -- int p3
0, -- int p4
Citizen.ResultAsInteger()
)
print(result, lootTarget)const [result, lootTarget] = Citizen.invokeNative("0x5463C962BC7777C3", // _REFRESH_LOOT_STATE_FOR_PED
PlayerPedId(), // Ped ped
0, // int p1
Citizen.pointerValueInt(), // Ped* lootTarget
0, // int p3
0, // int p4
Citizen.resultAsInteger()
);
console.log(result, lootTarget)var lootTargetArg = new OutputArgument();
int result = Function.Call<int>((Hash)0x5463C962BC7777C3, // _REFRESH_LOOT_STATE_FOR_PED
API.PlayerPedId(), // Ped ped
0, // int p1
lootTargetArg, // Ped* lootTarget
0, // int p3
0 // int p4
);
int lootTarget = lootTargetArg.GetResult<int>();Related PED natives
- _REFRESH_CARRIED_PED_FOR_PED
- _REFRESH_CARRY_STATE_FOR_PED
- _COMPUTE_LOOT_FOR_PED_CARCASS
- _DOES_META_PED_OUTFIT_EXIST_FOR_PED_MODEL
- _DOES_META_PED_SUBOUTFIT_EXIST_FOR_PED_MODEL
- _REFRESH_META_PED_SHOP_ITEMS
- _REQUEST_PED_FOR_SCENARIO_TYPE
- _APPLY_PED_META_PED_OUTFIT
- _CAN_PED_HEAR_TARGET_PED
- _CLEAR_PED_DESIRED_LOCO_FOR_MODEL
- _COMPUTE_PED_MOVE_BLEND_RATIO_FOR_MAX_SPEED
- _COMPUTE_SATCHEL_ITEM_FOR_PED_CARCASS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.