GetObjectModel

From SA-MP Wiki

Jump to: navigation, search

GetObjectModel was added in SA-MP 0.3.7 This function was added in SA-MP 0.3.7 and will not work in earlier versions!


Description:

Get the model ID of an object (CreateObject).


Parameters:
(objectid)
objectidThe ID of the object to get the model of


Return Values:

The model ID of the object. -1 if object does not exist.


Example Usage:

new objectid = CreateObject(1234, 0, 0, 0, 0, 0, 0);
new modelid = GetObjectModel(objectid);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools