The Lab
ENTITY native

CREATE_MODEL_SWAP

returns void7 paramsbuild 1207

Swaps map objects of originalModel for newModel within radius of the given coordinates.

Undo it with REMOVE_MODEL_SWAP using the same parameters.

Signature

C
void CREATE_MODEL_SWAP(float x, float y, float z, float radius, Hash originalModel, Hash newModel, BOOL p6); // 0x10B2218320B6F5AC b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4radiusfloat
5originalModelHash
6newModelHash
7p6BOOL

Facts

Facts about CREATE_MODEL_SWAP
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.

Lua
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
)
JavaScript
// 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
);
C#
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
);
All ENTITY natives

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