Get the position of where a player is aiming.


readonly aimPos: {x: number, y: number, z: number};

Example Usage

if (alt.Player.local.isAiming) {
    const pos = alt.Player.local.pos;
    const end = alt.Player.local.aimPos.mul(-1).add(pos);
    // End is the position where the player is aiming.
    alt.log(JSON.stringify(end, null, '\t'));

alt.Player.local can also be a player instance from server

results matching ""

    No results matching ""