The Lab
MISC native

_CREATE_AI_MEMORY

returns void2 paramsbuild 1207

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

Creates an AI memory entry of type aiMemoryType from the args structure.

Signature

C
void _CREATE_AI_MEMORY(Any* args, int aiMemoryType); // 0x88BC5F4AEF77FC4E b1207

Parameters

#NameType
1argsAny* (out pointer)
2aiMemoryTypeint

Facts

Facts about _CREATE_AI_MEMORY
Name
_CREATE_AI_MEMORY
Hash
0x88BC5F4AEF77FC4E
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 args = Citizen.InvokeNative(0x88BC5F4AEF77FC4E, -- _CREATE_AI_MEMORY
  Citizen.PointerValueInt(), -- Any* args
  0 -- int aiMemoryType
)
print(args)
JavaScript
const args = Citizen.invokeNative("0x88BC5F4AEF77FC4E", // _CREATE_AI_MEMORY
  Citizen.pointerValueInt(), // Any* args
  0 // int aiMemoryType
);
console.log(args)
C#
var argsArg = new OutputArgument();
Function.Call((Hash)0x88BC5F4AEF77FC4E, // _CREATE_AI_MEMORY
  argsArg, // Any* args
  0 // int aiMemoryType
);
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.