ข้ามไปยังเนื้อหาหลัก

GetPickupModel

คำเตือน

ฟังก์ชันนี้ถูกเพิ่มใน omp v1.1.0.2612 และจะไม่ทำงานในเวอร์ชันก่อนหน้า!

Description​

Gets the model ID of a pickup.

NameDescription
pickupidThe ID of the pickup to get the model ID of.

Returns​

Returns the model ID of the pickup.

Examples​

new g_Pickup;

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

new model = GetPickupModel(g_Pickup);
// model = 1239
return 1;
}