Skip to main content

SetPlayerPickupPos

warning

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

Description

Sets the position of a player-pickup.

NameDescription
playeridThe ID of the player.
pickupidThe ID of the player-pickup.
Float:xThe x coordinate to set the pickup at.
Float:yThe y coordinate to set the pickup at.
Float:zThe z coordinate to set the pickup at.
bool:update = trueUpdate pickup for player. (true/false)

Returns

This function always returns true.

Examples

new PlayerPickup[MAX_PLAYERS];

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

SetPlayerPickupPos(playerid, PlayerPickup[playerid], 1958.5488, 1344.9137, 15.3613);
return 1;
}