Entity::position: Difference between revisions
No edit summary |
|||
| Line 1: | Line 1: | ||
{{ServersideJsFunction}} | |||
__TOC__ | |||
This property gets/sets the entity position. | This property gets/sets the entity position. | ||
Latest revision as of 10:23, 11 November 2019
Server-Side Function
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);