CREATE_MODEL_SWAP
Swaps map objects of originalModel for newModel within radius of the given coordinates.
Undo it with REMOVE_MODEL_SWAP using the same parameters.
Signature
void CREATE_MODEL_SWAP(float x, float y, float z, float radius, Hash originalModel, Hash newModel, BOOL p6); // 0x10B2218320B6F5AC b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | radius | float |
| 5 | originalModel | Hash |
| 6 | newModel | Hash |
| 7 | p6 | BOOL |
Facts
| Name | CREATE_MODEL_SWAP |
|---|---|
| Hash | 0x10B2218320B6F5AC |
| 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(0x10B2218320B6F5AC, -- CREATE_MODEL_SWAP
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float radius
GetHashKey("a_c_horse_arabian_white"), -- Hash originalModel
GetHashKey("a_c_horse_arabian_white"), -- Hash newModel
false -- BOOL p6
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x10B2218320B6F5AC", // CREATE_MODEL_SWAP
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
GetHashKey("a_c_horse_arabian_white"), // Hash originalModel
GetHashKey("a_c_horse_arabian_white"), // Hash newModel
false // BOOL p6
);Function.Call((Hash)0x10B2218320B6F5AC, // CREATE_MODEL_SWAP
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float radius
(uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash originalModel
(uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash newModel
false // BOOL p6
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.