Passa al contenuto principale

SetPickupType

Avviso

La funzione è stata aggiunta nella versione omp v1.1.0.2612 e non funziona nelle versioni precedenti!

Description​

Sets the type of a pickup.

NameDescription
pickupidThe ID of the pickup.
typeThe pickup type to set.
bool:update = trueUpdate pickup for everyone. (true/false)

Returns​

This function always returns true.

Examples​

new g_Pickup;

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

SetPickupType(g_Pickup, 2);
return 1;
}