Ugrás a fő tartalomhoz

SetPickupPos

vigyázat

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

Description

Sets the position of a pickup.

NameDescription
pickupidThe ID of the 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 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);

SetPickupPos(g_Pickup, 1958.5488, 1344.9137, 15.3613);
return 1;
}