CREATE_PICKUP_ROTATE
Hash
0x891804727E0A98B7Runtime name
CreatePickupRotateNamespaceOBJECT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x891804727E0A98B7Signature
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);Parameters
| Name | Type | Description |
|---|---|---|
pickupHash | Hash | — |
posX | float | — |
posY | float | — |
posZ | float | — |
rotX | float | — |
rotY | float | — |
rotZ | float | — |
flags | int | — |
p8 | int | — |
p9 | int | — |
p10 | BOOL | — |
modelHash | Hash | — |
p12 | int | — |
p13 | float | — |
p14 | Any | — |
Returns Pickup
Description
flags: see CREATE_PICKUP
Usage
local retval = CreatePickupRotate(pickupHash, posX, posY, posZ, rotX, rotY, rotZ, flags, p8, p9, p10, modelHash, p12, p13, p14)
-- always works, by hash
local retval = Citizen.InvokeNative(0x891804727E0A98B7, pickupHash, posX, posY, posZ, rotX, rotY, rotZ, flags, p8, p9, p10, modelHash, p12, p13, p14, Citizen.ResultAsInteger())JavaScript and C#
const retval = CreatePickupRotate(pickupHash, posX, posY, posZ, rotX, rotY, rotZ, flags, p8, p9, p10, modelHash, p12, p13, p14);
// by hash
const retval = Citizen.invokeNative('0x891804727E0A98B7', pickupHash, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, flags, p8, p9, p10, modelHash, p12, p13 + 0.0000001, p14, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x891804727E0A98B7, pickupHash, posX, posY, posZ, rotX, rotY, rotZ, flags, p8, p9, p10, modelHash, p12, p13, p14);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eEulerRotationOrder 6 values
- Placement Flags 24 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.