முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

GetObjectModel

எச்சரிக்கை

செயல்பாடு என்பது SA-MP 0.3.7 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Get the model ID of an object (CreateObject).

NameDescription
objectidThe ID of the object to get the model of

Returns​

The model ID of the object.

-1 if object does not exist.

Examples​

public OnGameModeInit()
{
new objectid = CreateObject(19609, 666.57239, 1750.79749, 4.95627, 0.00000, 0.00000, -156.00000);

new modelid = GetObjectModel(objectid);
printf("Object model: %d", modelid); // Output: "Object model: 19609"
return 1;
}