Entity::position: Difference between revisions
MrPancakers (talk | contribs) m (Reworded description) |
MrPancakers (talk | contribs) m (→See Also) |
||
| Line 16: | Line 16: | ||
==See Also== | ==See Also== | ||
{{ | {{Entity_definition}} | ||
Revision as of 01:28, 3 February 2019
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);