The Lab
SCRIPT native

SET_SCRIPT_AS_NO_LONGER_NEEDED

returns void1 parambuild 1207

Tells the game the script scriptName no longer needs to stay in memory, so it can be unloaded.

Call it after START_NEW_SCRIPT once the thread is running.

Signature

C
void SET_SCRIPT_AS_NO_LONGER_NEEDED(const char* scriptName); // 0x0086D3067E1CFD1C b1207

Parameters

#NameType
1scriptNameconst char*

Facts

Facts about SET_SCRIPT_AS_NO_LONGER_NEEDED
Name
SET_SCRIPT_AS_NO_LONGER_NEEDED
Hash
0x0086D3067E1CFD1C
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x0086D3067E1CFD1C, -- SET_SCRIPT_AS_NO_LONGER_NEEDED
  "text" -- const char* scriptName
)
JavaScript
Citizen.invokeNative("0x0086D3067E1CFD1C", // SET_SCRIPT_AS_NO_LONGER_NEEDED
  "text" // const char* scriptName
);
C#
Function.Call((Hash)0x0086D3067E1CFD1C, // SET_SCRIPT_AS_NO_LONGER_NEEDED
  "text" // const char* scriptName
);
All SCRIPT natives

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