natives.isPlayerFreeAimingAtChar

Revision as of 00:09, 4 December 2025 by ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.isPlayerFreeAimingAtChar |parameters = int playerId, int ped |parameter1 = int playerId The local or network player ID |parameter2 = int ped The ped handle to check against |usage = Returns whether the specified player is free-aiming at the given ped (without hard lock-on). |notes = - Commonly used together with natives.isPlayerTargettingChar to cover both aim states - Typically polled insid...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

natives.isPlayerFreeAimingAtChar

Signature: bool True if the player is free-aiming at the ped, false otherwise natives.isPlayerFreeAimingAtChar(int playerId, int ped)

Usage: Returns whether the specified player is free-aiming at the given ped (without hard lock-on).

Parameters

int playerId The local or network player ID
int ped The ped handle to check against

Return

bool True if the player is free-aiming at the ped, false otherwise

On failure: bool False on failure or when not aiming