From SA-MP Wiki
Get the position of an actor.
|actorid||The ID of the actor to get the position of. Returned by CreateActor.|
|X||A float variable, passed by reference, in which to store the X coordinate of the actor.|
|Y||A float variable, passed by reference, in which to store the Y coordinate of the actor.|
|Z||A float variable, passed by reference, in which to store the Z coordinate of the actor.|
- 1: The function executed successfully.
- 0: The function failed to execute. The actor specified does not exist.
- The actor's position is stored in the specified variables.
new Float:x, Float:y, Float:z; GetActorPos(actorid, x, y, z);
The following functions may be useful, as they are related to this function in one way or another.
- SetActorPos: Set the position of an actor.