REPLAY_SYSTEM_HAS_REQUESTED_A_SCRIPT_CLEANUP
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
BOOL REPLAY_SYSTEM_HAS_REQUESTED_A_SCRIPT_CLEANUP(); // 0x0F838D47DE58EDB2 b1207Parameters
This native takes no parameters.
Facts
| 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.
local result = Citizen.InvokeNative(0x0F838D47DE58EDB2) -- REPLAY_SYSTEM_HAS_REQUESTED_A_SCRIPT_CLEANUP
if result then
-- ...
endconst result = Citizen.invokeNative("0x0F838D47DE58EDB2", // REPLAY_SYSTEM_HAS_REQUESTED_A_SCRIPT_CLEANUP
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x0F838D47DE58EDB2); // REPLAY_SYSTEM_HAS_REQUESTED_A_SCRIPT_CLEANUPRelated REPLAY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.