跳到主要內容

SetPickupModel

注意

此函式於 omp v1.1.0.2612 版本中新增,在更早的版本中無法使用!

Description​

Sets the model of a pickup.

NameDescription
pickupidThe ID of the pickup.
modelThe model 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);

SetPickupModel(g_Pickup, 1210);
return 1;
}