The Lab
MISC native

_GET_AI_PED_DOES_HAVE_EVENT_MEMORY

returns BOOL2 paramsbuild 1207

Based on its name and signature, here is our best reading:

Returns true if an AI ped has a memory of the event described by args.

Signature

C
BOOL _GET_AI_PED_DOES_HAVE_EVENT_MEMORY(Any* args, int p1); // 0xFDF38E2B711BF78E b1207

Parameters

#NameType
1argsAny* (out pointer)
2p1int

Facts

Facts about _GET_AI_PED_DOES_HAVE_EVENT_MEMORY
Name
_GET_AI_PED_DOES_HAVE_EVENT_MEMORY
Hash
0xFDF38E2B711BF78E
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, args = Citizen.InvokeNative(0xFDF38E2B711BF78E, -- _GET_AI_PED_DOES_HAVE_EVENT_MEMORY
  Citizen.PointerValueInt(), -- Any* args
  0, -- int p1
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, args] = Citizen.invokeNative("0xFDF38E2B711BF78E", // _GET_AI_PED_DOES_HAVE_EVENT_MEMORY
  Citizen.pointerValueInt(), // Any* args
  0, // int p1
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var argsArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xFDF38E2B711BF78E, // _GET_AI_PED_DOES_HAVE_EVENT_MEMORY
  argsArg, // Any* args
  0 // int p1
);
int args = argsArg.GetResult<int>();
All MISC natives

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