Skip to main content

Player::getEntityIsFreeAimingAtRaw

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.

Syntax​

mp.game.player.getEntityIsFreeAimingAtRaw();

Return value​

  • handle or undefined

Example​

const targetEntity = mp.game.player.getEntityIsFreeAimingAtRaw();
if (targetEntity) {
const ped = mp.peds.atHandle(targetEntity);
if (ped && mp.peds.exists(ped)) {
mp.gui.chat.push(`You are aiming at ped id ${ped.id}`);
}
}