The Lab
OBJECT native

CREATE_PORTABLE_PICKUP

returns Object6 paramsbuild 1207

Creates a portable pickup that can be carried, optionally placed on the ground, and returns its object.

Signature

C
Object CREATE_PORTABLE_PICKUP(Hash pickupHash, float x, float y, float z, BOOL placeOnGround, Hash modelHash); // 0x2EAF1FDB2FB55698 b1207

Parameters

#NameType
1pickupHashHash
2xfloat
3yfloat
4zfloat
5placeOnGroundBOOL
6modelHashHash

Facts

Facts about CREATE_PORTABLE_PICKUP
Name
CREATE_PORTABLE_PICKUP
Hash
0x2EAF1FDB2FB55698
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(0x2EAF1FDB2FB55698, -- CREATE_PORTABLE_PICKUP
  GetHashKey("name"), -- Hash pickupHash
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  false, -- BOOL placeOnGround
  GetHashKey("a_c_horse_arabian_white"), -- Hash modelHash
  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("0x2EAF1FDB2FB55698", // CREATE_PORTABLE_PICKUP
  GetHashKey("name"), // Hash pickupHash
  0.0, // float x
  0.0, // float y
  0.0, // float z
  false, // BOOL placeOnGround
  GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  Citizen.resultAsInteger()
);
console.log(objectOut)
C#
int objectOut = Function.Call<int>((Hash)0x2EAF1FDB2FB55698, // CREATE_PORTABLE_PICKUP
  (uint)API.GetHashKey("name"), // Hash pickupHash
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  false, // BOOL placeOnGround
  (uint)API.GetHashKey("a_c_horse_arabian_white") // Hash modelHash
);
All OBJECT natives

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