IsPlayerCrosshairVisible

From Multi Theft Auto: Wiki
Revision as of 11:14, 14 October 2024 by FileEX (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r22751:
This function checks if the local player has showing crosshair.
[[{{{image}}}|link=|]] Note: This function checks if the crosshair is rendered by GTA. Please note that hud components are not associated with this function, so the function may return true even if the "crosshair" component is hidden with setPlayerHudComponentVisible. If you need checking use isPlayerHudComponentVisible.

Syntax

bool isPlayerCrosshairVisible()

Returns

Returns true if the player has the crosshair visible, false otherwise.

Example

Accessories-text-editor.png Script Example Missing Function IsPlayerCrosshairVisible needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


See Also