The Lab
REPLAY native

REPLAY_SYSTEM_HAS_REQUESTED_A_SCRIPT_CLEANUP

returns BOOL0 paramsbuild 1207

Returns true when the replay system has asked running scripts to clean up, typically before it takes over.

Pair it with SET_SCRIPTS_HAVE_CLEANED_UP_FOR_REPLAY_SYSTEM once your script has released its resources.

Signature

C
BOOL REPLAY_SYSTEM_HAS_REQUESTED_A_SCRIPT_CLEANUP(); // 0x0F838D47DE58EDB2 b1207

Parameters

This native takes no parameters.

Facts

Facts about REPLAY_SYSTEM_HAS_REQUESTED_A_SCRIPT_CLEANUP
Name
REPLAY_SYSTEM_HAS_REQUESTED_A_SCRIPT_CLEANUP
Hash
0x0F838D47DE58EDB2
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(0x0F838D47DE58EDB2) -- REPLAY_SYSTEM_HAS_REQUESTED_A_SCRIPT_CLEANUP
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x0F838D47DE58EDB2", // REPLAY_SYSTEM_HAS_REQUESTED_A_SCRIPT_CLEANUP
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x0F838D47DE58EDB2); // REPLAY_SYSTEM_HAS_REQUESTED_A_SCRIPT_CLEANUP
All REPLAY natives

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