The Lab
PED native

_REFRESH_CARRY_STATE_FOR_PED

returns int5 paramsbuild 1207

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

C
int _REFRESH_CARRY_STATE_FOR_PED(Ped ped, int carryType, Any* outEnts, int outEntsCount, int filterFlags); // 0x4642182A298187D0 b1207

Parameters

#NameType
1pedPed
2carryTypeint
3outEntsAny* (out pointer)
4outEntsCountint
5filterFlagsint

Facts

Facts about _REFRESH_CARRY_STATE_FOR_PED
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.

Lua
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)
JavaScript
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)
C#
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>();
All PED natives

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