Entity::position: Difference between revisions

From RAGE Multiplayer Wiki
m (Reworded description)
Line 1: Line 1:
This property is the position of a player.
This property gets/sets the entity position.


==Getter==
==Getter==

Revision as of 09:24, 13 May 2018

This property gets/sets the entity position.

Getter

  • Vector3

Setter

  • Vector3

Example

Server-Side

const playerPos = player.position
console.log(playerPos) // return e.g. {x: 1337, y: 228, z: 70}
player.position = new mp.Vector3(0.0, 0.0, 72.0);

See Also