Aller au contenu principal

GetPickupVirtualWorld

attention

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

Description

Gets the virtual world ID of a pickup.

NameDescription
pickupidThe ID of the pickup to get the virtual world ID of.

Returns

Returns the virtual world ID of the pickup.

Examples

new g_Pickup;

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

new worldid = GetPickupVirtualWorld(g_Pickup);
// worldid = 20
return 1;
}