DOES_PICKUP_EXIST
Returns true if the pickup handle refers to an existing pickup.
Signature
BOOL DOES_PICKUP_EXIST(Pickup pickup); // 0xAFC1CA75AD4074D1 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | pickup | Pickup |
Facts
| Name | DOES_PICKUP_EXIST |
|---|---|
| Hash | 0xAFC1CA75AD4074D1 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xAFC1CA75AD4074D1, -- DOES_PICKUP_EXIST
0 -- Pickup pickup
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xAFC1CA75AD4074D1", // DOES_PICKUP_EXIST
0, // Pickup pickup
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xAFC1CA75AD4074D1, // DOES_PICKUP_EXIST
0 // Pickup pickup
);Related OBJECT natives
- DOES_PICKUP_OBJECT_EXIST
- DOES_PICKUP_OF_TYPE_EXIST_IN_AREA
- DOES_OBJECT_OF_TYPE_EXIST_AT_COORDS
- DOES_RAYFIRE_MAP_OBJECT_EXIST
- DETACH_PORTABLE_PICKUP_FROM_PED
- _GET_AMMO_TYPE_FROM_PICKUP_TYPE
- _HIDE_PICKUP_OBJECT
- _IS_PICKUP_PICKABLE_FOR_TEAM
- _IS_PICKUP_TYPE_VALID
- _SET_AMBIENT_PICKUP_LIFETIME
- _SET_NETWORK_PICKUP_USABLE_FOR_PLAYER
- _SET_PICKUP_COLLECTABLE_ON_MOUNT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.