The open.mp logo
Home
FAQ
Forums
Servers
Partners
Docs
Blog

note Help Needed

This wiki is the result of an ongoing community effort — thank you all for helping!

If you want to provide changes to this page then please click here.

DestroyPickup

Description

Destroys a pickup created with CreatePickup.

NameDescription
pickupThe ID of the pickup to destroy (returned by CreatePickup).

Returns

This function does not return any specific values.

Examples

// Create a pickup for armor.
pickup_armour = CreatePickup ( 1242, 2, 1503.3359, 1432.3585, 10.1191 );

//some time later...
DestroyPickup(pickup_armour);

Related Functions

  • CreatePickup: Create a pickup.
  • OnPlayerPickUpPickup: Called when a player picks up a pickup.

Community

  • SA-MP
  • Discord
  • Instagram
  • X
  • YouTube
  • Facebook
  • VK

More

  • Blog
  • GitHub