- Documentation
- Server functions
- isPlayerCrosshairVisible
Function
isPlayerCrosshairVisible
Checks whether the player's crosshair is visible. The game does not allow hiding the crosshair on its own, so it is visible as long as the whole HUD ("all") is.
Syntax
bool isPlayerCrosshairVisible(player thePlayer)Arguments
thePlayerplayer- The player.Not in MTA:SA
Differences from MTA:SA
- Arguments in a different colour differ from MTA:SA.
In MTA:SA
isPlayerCrosshairVisible()Returns
true if visible.
Example
outputServerLog(tostring(isPlayerCrosshairVisible(player)))