{"hash":"0xBD94CECFB2D65119","ns":"ENTITY","name":"_SET_AUTO_PICKUP","slug":"_SET_AUTO_PICKUP","official":false,"named":true,"luaName":"SetAutoPickup","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"entity","type":"Entity"},{"name":"noPickupAnim","type":"BOOL"},{"name":"autoPickupRange","type":"float"},{"name":"p3","type":"float"},{"name":"p4","type":"float"},{"name":"enablePickupPrompt","type":"BOOL"}],"summary":"Configures automatic pickup behavior for a carriable entity.","descriptions":[{"source":"alloc8or","format":"text","body":"Configures automatic pickup behavior for a carriable entity.\nTypically used after TASK_CARRIABLE.\nIt enables auto-pickup behavior with controls for pickup animation, pickup range, and whether the pickup prompt is enabled."},{"source":"vorp","format":"text","body":"Configures automatic pickup behavior for a carriable entity.\nThis 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"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/_SET_AUTO_PICKUP","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/_SET_AUTO_PICKUP.md","snippets":{"lua":"SetAutoPickup(entity, noPickupAnim, autoPickupRange, p3, p4, enablePickupPrompt)","luaInvoke":"Citizen.InvokeNative(0xBD94CECFB2D65119, entity, noPickupAnim, autoPickupRange, p3, p4, enablePickupPrompt)","js":"SetAutoPickup(entity, noPickupAnim, autoPickupRange, p3, p4, enablePickupPrompt);","jsInvoke":"Citizen.invokeNative('0xBD94CECFB2D65119', entity, noPickupAnim, autoPickupRange + 0.0000001, p3 + 0.0000001, p4 + 0.0000001, enablePickupPrompt);","csharp":"Function.Call((Hash)0xBD94CECFB2D65119, entity, noPickupAnim, autoPickupRange, p3, p4, enablePickupPrompt);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to 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 `InvokeNative` with the hash — it always works."]}}