Object::hasPickupBeenCollected

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Syntax

mp.game.object.hasPickupBeenCollected(p0);

Required Arguments

  • Pickup: int (Pickup handle)

Return value

  • Boolean

Example

let pickupHandle = mp.game.object.createPickupRotate(-1888453608, 1985.56, 3050.966 + 3, 47.21, 0, 0, 0, 8, 50, 0, true, mp.game.joaat('prop_ld_health_pack'));
if (mp.game.object.hasPickupBeenCollected(pickupHandle)) // do something

See also