The Lab
TASK native

CAN_START_ITEM_INTERACTION

returns BOOL4 paramsbuild 1207

Returns true if ped can start the interaction interactionAnimHash with itemHash.

Signature

C
BOOL CAN_START_ITEM_INTERACTION(Ped ped, Hash itemHash, Hash interactionAnimHash, int p3); // 0x2D19BC4DF626CBE7 b1207

Parameters

#NameType
1pedPed
2itemHashHash
3interactionAnimHashHash
4p3int

Facts

Facts about CAN_START_ITEM_INTERACTION
Name
CAN_START_ITEM_INTERACTION
Hash
0x2D19BC4DF626CBE7
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 = Citizen.InvokeNative(0x2D19BC4DF626CBE7, -- CAN_START_ITEM_INTERACTION
  PlayerPedId(), -- Ped ped
  GetHashKey("name"), -- Hash itemHash
  GetHashKey("name"), -- Hash interactionAnimHash
  0 -- int p3
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x2D19BC4DF626CBE7", // CAN_START_ITEM_INTERACTION
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash itemHash
  GetHashKey("name"), // Hash interactionAnimHash
  0, // int p3
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x2D19BC4DF626CBE7, // CAN_START_ITEM_INTERACTION
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name"), // Hash itemHash
  (uint)API.GetHashKey("name"), // Hash interactionAnimHash
  0 // int p3
);
All TASK natives

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