The Lab
STREAMING native

SET_MODEL_AS_NO_LONGER_NEEDED

returns void1 parambuild 1207

Releases a model loaded by script so the game can unload it.

Call it right after spawning entities; existing entities keep their model.

Signature

C
void SET_MODEL_AS_NO_LONGER_NEEDED(Hash model); // 0x4AD96EF928BD4F9A b1207

Parameters

#NameType
1modelHash

Facts

Facts about SET_MODEL_AS_NO_LONGER_NEEDED
Name
SET_MODEL_AS_NO_LONGER_NEEDED
Hash
0x4AD96EF928BD4F9A
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(0x4AD96EF928BD4F9A, -- SET_MODEL_AS_NO_LONGER_NEEDED
  GetHashKey("a_c_horse_arabian_white") -- Hash model
)
JavaScript
Citizen.invokeNative("0x4AD96EF928BD4F9A", // SET_MODEL_AS_NO_LONGER_NEEDED
  GetHashKey("a_c_horse_arabian_white") // Hash model
);
C#
Function.Call((Hash)0x4AD96EF928BD4F9A, // SET_MODEL_AS_NO_LONGER_NEEDED
  (uint)API.GetHashKey("a_c_horse_arabian_white") // Hash model
);
All STREAMING natives

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