_SET_AUTO_PICKUP
Enables automatic pickup of the entity within the given range, with options for the pickup animation and prompt.
Signature
void _SET_AUTO_PICKUP(Entity entity, BOOL noPickupAnim, float autoPickupRange, float p3, float p4, BOOL enablePickupPrompt); // 0xBD94CECFB2D65119 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | noPickupAnim | BOOL |
| 3 | autoPickupRange | float |
| 4 | p3 | float |
| 5 | p4 | float |
| 6 | enablePickupPrompt | BOOL |
Facts
| Name | _SET_AUTO_PICKUP |
|---|---|
| Hash | 0xBD94CECFB2D65119 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xBD94CECFB2D65119, -- _SET_AUTO_PICKUP
PlayerPedId(), -- Entity entity
false, -- BOOL noPickupAnim
0.0, -- float autoPickupRange
0.0, -- float p3
0.0, -- float p4
false -- BOOL enablePickupPrompt
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xBD94CECFB2D65119", // _SET_AUTO_PICKUP
PlayerPedId(), // Entity entity
false, // BOOL noPickupAnim
0.0, // float autoPickupRange
0.0, // float p3
0.0, // float p4
false // BOOL enablePickupPrompt
);Function.Call((Hash)0xBD94CECFB2D65119, // _SET_AUTO_PICKUP
API.PlayerPedId(), // Entity entity
false, // BOOL noPickupAnim
0.0f, // float autoPickupRange
0.0f, // float p3
0.0f, // float p4
false // BOOL enablePickupPrompt
);Related ENTITY natives
- _SET_CARRIABLE_PICKUP_LIGHT
- _SET_ENTITY_CUSTOM_PICKUP_RADIUS
- SET_CAN_AUTO_VAULT_ON_ENTITY
- _SET_ANIMAL_PELT_TEXTURE
- _SET_ENTITY_ANIM_AGE
- _SET_ENTITY_ANIM_CURRENT_TIME
- _SET_ENTITY_ANIM_SPEED
- _SET_ENTITY_ATTACHED_OFFSET
- _SET_ENTITY_CARCASS_TYPE
- _SET_ENTITY_CARRYING_FLAG
- _SET_ENTITY_COORDS_AND_HEADING
- _SET_ENTITY_COORDS_AND_HEADING_NO_OFFSET
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.