SET_MODEL_AS_NO_LONGER_NEEDED
Releases a model loaded by script so the game can unload it.
Call it right after spawning entities; existing entities keep their model.
Signature
void SET_MODEL_AS_NO_LONGER_NEEDED(Hash model); // 0x4AD96EF928BD4F9A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | model | Hash |
Facts
| 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.
Citizen.InvokeNative(0x4AD96EF928BD4F9A, -- SET_MODEL_AS_NO_LONGER_NEEDED
GetHashKey("a_c_horse_arabian_white") -- Hash model
)Citizen.invokeNative("0x4AD96EF928BD4F9A", // SET_MODEL_AS_NO_LONGER_NEEDED
GetHashKey("a_c_horse_arabian_white") // Hash model
);Function.Call((Hash)0x4AD96EF928BD4F9A, // SET_MODEL_AS_NO_LONGER_NEEDED
(uint)API.GetHashKey("a_c_horse_arabian_white") // Hash model
);Related STREAMING natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.