CreateObject

From SA-MP Wiki

Jump to: navigation, search

CreateObject


Creates an object.


Parameters:
(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ)
modelidThe model you want to use.
Float:XThe X coordinate to create the object at.
Float:YThe Y coordinate to create the object at.
Float:ZThe Z coordinate to create the object at.
Float:rXThe X rotation of the object.
Float:rYThe Y rotation of the object.
Float:rZThe Z rotation of the object.


ReturnsThe ID of the object that was created.


public OnGameModeInit()
{
    CreateObject(2587, 2001.195679, 1547.113892, 14.283400, 0, 0, 96);
    return 1;
}

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.


Personal tools
In other languages