This function was added in SA-MP 0.3.7 and will not work in earlier versions!
Get the model ID of an object (CreateObject).
|objectid||The ID of the object to get the model of|
The model ID of the object. -1 if object does not exist.
new objectid = CreateObject(1234, 0, 0, 0, 0, 0, 0);
new modelid = GetObjectModel(objectid);
- GetPlayerObjectModel: Get the model ID of a player-object.