GetPlayerObjectModel

GetPlayerObjectModel

Description:
FunctionGetPlayerObjectModel retrieve the model ID of a player-object.
Function GetPlayerObjectModel was added in 0.3.7 and will not work in earlier versions!


Parameters:
(playerid, objectid)
int playerid The ID of the player whose player-object to get the model of.
int objectid The ID of the player-object of which to retrieve the model ID.


Return Values:
The model ID of the player object. If the player or object don't exist, it will return -1 or 0 if the player or object does not exist.


Examples:
new objectid = CreatePlayerObject(playerid, 1234, 0, 0, 0, 0, 0, 0);
new modelid = GetPlayerObjectModel(playerid, objectid);


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