ObjectClient

doesPickupExist

DOES_PICKUP_EXIST0xAFC1CA75AD4074D1

The GTA V native DOES_PICKUP_EXIST of the OBJECT namespace, as LS:MP client scripts call it: the global function doesPickupExist, in JavaScript and in Lua.

SignatureJavaScript
doesPickupExist(pickup: Pickup): boolean
SignatureLua
doesPickupExist(pickup: Pickup): boolean

Usage

JavaScript
const result = doesPickupExist(pickup);
Lua
local result = doesPickupExist(pickup)

Parameters

ParameterTypeJavaScriptLua
pickupPickupnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Object OBJECT
In the game
BOOL DOES_PICKUP_EXIST(Pickup pickup)
Hash
0xAFC1CA75AD4074D1

Open in the interactive natives reference