முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

GetPickupType

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

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;
}