Przejdź do głównej zawartości

GetPickupType

warning

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Gets the type of a pickup.

NameDescription
pickupidThe ID of the pickup to get the type of.

Returns

Returns the type of the pickup.

-1 if the pickup is not valid.

Examples

new g_Pickup;

public OnGameModeInit()
{
g_Pickup = CreatePickup(1239, 1, 1686.6160, 1455.4277, 10.7705, -1);

new type = GetPickupType(g_Pickup);
// type = 1
return 1;
}