The Lab
TASK native

_TASK_ITEM_INTERACTION_3

returns void7 paramsbuild 1207

Tasks ped to interact with item identified by guid.

Signature

C
void _TASK_ITEM_INTERACTION_3(Ped ped, Hash item, Any* guid, Any p3, Any p4, Any p5, float p6); // 0xD61D5E1AD9876DEB b1207

Parameters

#NameType
1pedPed
2itemHash
3guidAny* (out pointer)
4p3Any
5p4Any
6p5Any
7p6float

Facts

Facts about _TASK_ITEM_INTERACTION_3
Name
_TASK_ITEM_INTERACTION_3
Hash
0xD61D5E1AD9876DEB
Namespace
Returns
void
Game build
1207

Examples

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

Lua
local guid = Citizen.InvokeNative(0xD61D5E1AD9876DEB, -- _TASK_ITEM_INTERACTION_3
  PlayerPedId(), -- Ped ped
  GetHashKey("name"), -- Hash item
  Citizen.PointerValueInt(), -- Any* guid
  0, -- Any p3
  0, -- Any p4
  0, -- Any p5
  0.0 -- float p6
)
print(guid)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const guid = Citizen.invokeNative("0xD61D5E1AD9876DEB", // _TASK_ITEM_INTERACTION_3
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash item
  Citizen.pointerValueInt(), // Any* guid
  0, // Any p3
  0, // Any p4
  0, // Any p5
  0.0 // float p6
);
console.log(guid)
C#
var guidArg = new OutputArgument();
Function.Call((Hash)0xD61D5E1AD9876DEB, // _TASK_ITEM_INTERACTION_3
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name"), // Hash item
  guidArg, // Any* guid
  0, // Any p3
  0, // Any p4
  0, // Any p5
  0.0f // float p6
);
int guid = guidArg.GetResult<int>();
All TASK natives

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