The Lab
UISTATEMACHINE native

UI_STATE_MACHINE_DESTROY_AND_CLEAR

returns void1 parambuild 1207

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

Destroys the UI state machine referenced by p0 and clears the stored reference.

Signature

C
void UI_STATE_MACHINE_DESTROY_AND_CLEAR(Any* p0); // 0x2738D68D2B4E09E7 b1207

Parameters

#NameType
1p0Any* (out pointer)

Facts

Facts about UI_STATE_MACHINE_DESTROY_AND_CLEAR
Name
UI_STATE_MACHINE_DESTROY_AND_CLEAR
Hash
0x2738D68D2B4E09E7
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 p0 = Citizen.InvokeNative(0x2738D68D2B4E09E7, -- UI_STATE_MACHINE_DESTROY_AND_CLEAR
  Citizen.PointerValueInt() -- Any* p0
)
print(p0)
JavaScript
const p0 = Citizen.invokeNative("0x2738D68D2B4E09E7", // UI_STATE_MACHINE_DESTROY_AND_CLEAR
  Citizen.pointerValueInt() // Any* p0
);
console.log(p0)
C#
var p0Arg = new OutputArgument();
Function.Call((Hash)0x2738D68D2B4E09E7, // UI_STATE_MACHINE_DESTROY_AND_CLEAR
  p0Arg // Any* p0
);
int p0 = p0Arg.GetResult<int>();
All UISTATEMACHINE natives

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