_REFRESH_CARRY_STATE_FOR_PED
Based on its name and signature, here is our best reading:
Appears to refresh the carry state of ped and write the carried entities to outEnts, returning their count.
Signature
int _REFRESH_CARRY_STATE_FOR_PED(Ped ped, int carryType, Any* outEnts, int outEntsCount, int filterFlags); // 0x4642182A298187D0 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | carryType | int |
| 3 | outEnts | Any* (out pointer) |
| 4 | outEntsCount | int |
| 5 | filterFlags | int |
Facts
| Name | _REFRESH_CARRY_STATE_FOR_PED |
|---|---|
| Hash | 0x4642182A298187D0 |
| 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, outEnts = Citizen.InvokeNative(0x4642182A298187D0, -- _REFRESH_CARRY_STATE_FOR_PED
PlayerPedId(), -- Ped ped
0, -- int carryType
Citizen.PointerValueInt(), -- Any* outEnts
0, -- int outEntsCount
0, -- int filterFlags
Citizen.ResultAsInteger()
)
print(result, outEnts)const [result, outEnts] = Citizen.invokeNative("0x4642182A298187D0", // _REFRESH_CARRY_STATE_FOR_PED
PlayerPedId(), // Ped ped
0, // int carryType
Citizen.pointerValueInt(), // Any* outEnts
0, // int outEntsCount
0, // int filterFlags
Citizen.resultAsInteger()
);
console.log(result, outEnts)var outEntsArg = new OutputArgument();
int result = Function.Call<int>((Hash)0x4642182A298187D0, // _REFRESH_CARRY_STATE_FOR_PED
API.PlayerPedId(), // Ped ped
0, // int carryType
outEntsArg, // Any* outEnts
0, // int outEntsCount
0 // int filterFlags
);
int outEnts = outEntsArg.GetResult<int>();Related PED natives
- _REFRESH_CARRIED_PED_FOR_PED
- _REFRESH_LOOT_STATE_FOR_PED
- _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_LOOT_FOR_PED_CARCASS
- _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.