Skip to main content

SetPlayerPickupVirtualWorld

warning

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

Description

Sets the virtual world ID of a player-pickup.

NameDescription
playeridThe ID of the player.
pickupidThe ID of the player-pickup.
virtualWorldThe virtual world ID to set.

Returns

This function always returns true.

Examples

new PlayerPickup[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
PlayerPickup[playerid] = CreatePlayerPickup(playerid, 1242, 1, 2010.0979, 1222.0642, 10.8206, 20);

SetPlayerPickupVirtualWorld(playerid, PlayerPickup[playerid], 10);
return 1;
}