The Lab
OBJECT native

CREATE_OBJECT_NO_OFFSET

returns Object8 paramsbuild 1207

Creates an object at the exact given coordinates without applying the model's placement offset, and returns its handle.

Load the model first with REQUEST_MODEL and HAS_MODEL_LOADED.

Signature

C
Object CREATE_OBJECT_NO_OFFSET(Hash modelHash, float x, float y, float z, BOOL isNetwork, BOOL bScriptHostObj, BOOL dynamic, BOOL p7); // 0x9A294B2138ABB884 b1207

Parameters

#NameType
1modelHashHash
2xfloat
3yfloat
4zfloat
5isNetworkBOOL
6bScriptHostObjBOOL
7dynamicBOOL
8p7BOOL

Facts

Facts about CREATE_OBJECT_NO_OFFSET
Name
CREATE_OBJECT_NO_OFFSET
Hash
0x9A294B2138ABB884
Namespace
Returns
Object
Game build
1207

Examples

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

Lua
local objectOut = Citizen.InvokeNative(0x9A294B2138ABB884, -- CREATE_OBJECT_NO_OFFSET
  GetHashKey("a_c_horse_arabian_white"), -- Hash modelHash
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  false, -- BOOL isNetwork
  false, -- BOOL bScriptHostObj
  false, -- BOOL dynamic
  false, -- BOOL p7
  Citizen.ResultAsInteger()
)
print(objectOut)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const objectOut = Citizen.invokeNative("0x9A294B2138ABB884", // CREATE_OBJECT_NO_OFFSET
  GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  0.0, // float x
  0.0, // float y
  0.0, // float z
  false, // BOOL isNetwork
  false, // BOOL bScriptHostObj
  false, // BOOL dynamic
  false, // BOOL p7
  Citizen.resultAsInteger()
);
console.log(objectOut)
C#
int objectOut = Function.Call<int>((Hash)0x9A294B2138ABB884, // CREATE_OBJECT_NO_OFFSET
  (uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  false, // BOOL isNetwork
  false, // BOOL bScriptHostObj
  false, // BOOL dynamic
  false // BOOL p7
);
All OBJECT natives

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