The Lab
PED native

GET_CARRIED_ATTACHED_INFO_FOR_SLOT

returns BOOL4 paramsbuild 1207

Writes information about the entity carried by ped in carriableSlot into outData, returning true if there is one.

Signature

C
BOOL GET_CARRIED_ATTACHED_INFO_FOR_SLOT(Any* outData, Ped ped, int carriableSlot, int p3); // 0x608BC6A6AACD5036 b1207

Parameters

#NameType
1outDataAny* (out pointer)
2pedPed
3carriableSlotint
4p3int

Facts

Facts about GET_CARRIED_ATTACHED_INFO_FOR_SLOT
Name
GET_CARRIED_ATTACHED_INFO_FOR_SLOT
Hash
0x608BC6A6AACD5036
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result, outData = Citizen.InvokeNative(0x608BC6A6AACD5036, -- GET_CARRIED_ATTACHED_INFO_FOR_SLOT
  Citizen.PointerValueInt(), -- Any* outData
  PlayerPedId(), -- Ped ped
  0, -- int carriableSlot
  0, -- int p3
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, outData] = Citizen.invokeNative("0x608BC6A6AACD5036", // GET_CARRIED_ATTACHED_INFO_FOR_SLOT
  Citizen.pointerValueInt(), // Any* outData
  PlayerPedId(), // Ped ped
  0, // int carriableSlot
  0, // int p3
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var outDataArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x608BC6A6AACD5036, // GET_CARRIED_ATTACHED_INFO_FOR_SLOT
  outDataArg, // Any* outData
  API.PlayerPedId(), // Ped ped
  0, // int carriableSlot
  0 // int p3
);
int outData = outDataArg.GetResult<int>();
All PED natives

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