CreatePlayerObject

From SA-MP Wiki

Jump to: navigation, search

CreatePlayerObject


Creates an object which will be visible to only one player. Use DestroyPlayerObject( ) to remove it.


Parameters:
(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ)
playeridThe id of the player you want to create the object for.
modelidThe model to create.
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.


new object;
object = CreatePlayerObject( playerid, 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
In other languages