_SET_AUTO_PICKUP
Configures automatic pickup behavior for a carriable entity.
Hash
0xBD94CECFB2D65119Runtime name
SetAutoPickupNamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_AUTO_PICKUP(Entity entity, BOOL noPickupAnim, float autoPickupRange, float p3, float p4, BOOL enablePickupPrompt);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
noPickupAnim | BOOL | — |
autoPickupRange | float | — |
p3 | float | — |
p4 | float | — |
enablePickupPrompt | BOOL | — |
Returns void
Description
Configures automatic pickup behavior for a carriable entity.
Typically used after TASK_CARRIABLE.
It enables auto-pickup behavior with controls for pickup animation, pickup range, and whether the pickup prompt is enabled.
Configures automatic pickup behavior for a carriable entity.
This native is typically used after TASK_CARRIABLE and enables auto-pickup functionality with configurable parameters such as pickup animation behavior, pickup range, and pickup prompt state
Usage
SetAutoPickup(entity, noPickupAnim, autoPickupRange, p3, p4, enablePickupPrompt)
-- always works, by hash
Citizen.InvokeNative(0xBD94CECFB2D65119, entity, noPickupAnim, autoPickupRange, p3, p4, enablePickupPrompt)JavaScript and C#
SetAutoPickup(entity, noPickupAnim, autoPickupRange, p3, p4, enablePickupPrompt);
// by hash
Citizen.invokeNative('0xBD94CECFB2D65119', entity, noPickupAnim, autoPickupRange + 0.0000001, p3 + 0.0000001, p4 + 0.0000001, enablePickupPrompt);Function.Call((Hash)0xBD94CECFB2D65119, entity, noPickupAnim, autoPickupRange, p3, p4, enablePickupPrompt);- 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. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.