CreateObject

From SA-MP Wiki

Jump to: navigation, search

CreateObject


Creates an object on the Map. Use DestroyObject( ) to remove it.
Parameters:
(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ)
modelidThe Model ID you want to use.
Float:XThe X coordinate.
Float:YThe Y coordinate.
Float:ZThe Z coordinate.
Float:rXThe X rotation.
Float:rYThe Y rotation.
Float:rZthe Z rotation.
ReturnsThe object id of the newly created object.


CreateObject( 2587, 2001.195679, 1547.113892, 14.283400, 0, 0, 96 );

Related Functions

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


Personal tools