The Lab
OBJECT native

CREATE_PICKUP_ROTATE

returns Pickup15 paramsbuild 1207

Creates a pickup of type pickupHash at the given position and rotation and returns its handle.

Signature

C
Pickup CREATE_PICKUP_ROTATE(Hash pickupHash, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, int flags, int p8, int p9, BOOL p10, Hash modelHash, int p12, float p13, Any p14); // 0x891804727E0A98B7 b1207

Parameters

#NameType
1pickupHashHash
2posXfloat
3posYfloat
4posZfloat
5rotXfloat
6rotYfloat
7rotZfloat
8flagsint
9p8int
10p9int
11p10BOOL
12modelHashHash
13p12int
14p13float
15p14Any

Facts

Facts about CREATE_PICKUP_ROTATE
Name
CREATE_PICKUP_ROTATE
Hash
0x891804727E0A98B7
Namespace
Returns
Pickup
Game build
1207

Examples

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

Lua
local pickup = Citizen.InvokeNative(0x891804727E0A98B7, -- CREATE_PICKUP_ROTATE
  GetHashKey("name"), -- Hash pickupHash
  0.0, -- float posX
  0.0, -- float posY
  0.0, -- float posZ
  0.0, -- float rotX
  0.0, -- float rotY
  0.0, -- float rotZ
  0, -- int flags
  0, -- int p8
  0, -- int p9
  false, -- BOOL p10
  GetHashKey("a_c_horse_arabian_white"), -- Hash modelHash
  0, -- int p12
  0.0, -- float p13
  0, -- Any p14
  Citizen.ResultAsInteger()
)
print(pickup)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const pickup = Citizen.invokeNative("0x891804727E0A98B7", // CREATE_PICKUP_ROTATE
  GetHashKey("name"), // Hash pickupHash
  0.0, // float posX
  0.0, // float posY
  0.0, // float posZ
  0.0, // float rotX
  0.0, // float rotY
  0.0, // float rotZ
  0, // int flags
  0, // int p8
  0, // int p9
  false, // BOOL p10
  GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  0, // int p12
  0.0, // float p13
  0, // Any p14
  Citizen.resultAsInteger()
);
console.log(pickup)
C#
int pickup = Function.Call<int>((Hash)0x891804727E0A98B7, // CREATE_PICKUP_ROTATE
  (uint)API.GetHashKey("name"), // Hash pickupHash
  0.0f, // float posX
  0.0f, // float posY
  0.0f, // float posZ
  0.0f, // float rotX
  0.0f, // float rotY
  0.0f, // float rotZ
  0, // int flags
  0, // int p8
  0, // int p9
  false, // BOOL p10
  (uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  0, // int p12
  0.0f, // float p13
  0 // Any p14
);
All OBJECT natives

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