IsPlayerCrosshairVisible: Difference between revisions
Jump to navigation
Jump to search
Laxante101 (talk | contribs) (→Return) |
|||
(One intermediate revision by one other user not shown) | |||
Line 8: | Line 8: | ||
<syntaxhighlight lang="lua">bool isPlayerCrosshairVisible()</syntaxhighlight> | <syntaxhighlight lang="lua">bool isPlayerCrosshairVisible()</syntaxhighlight> | ||
= | ===Returns=== | ||
'' | Returns ''true'' if the player has the crosshair visible, ''false'' otherwise. | ||
= | ==Example== | ||
<syntaxhighlight lang="lua"> | |||
function | addCommandHandler("aim", function() | ||
local AimStatusText = isPlayerCrosshairVisible() and "Visbile" or "Hidden" | |||
outputChatBox("Your AIM is: ".. AimStatusText) | |||
end) | |||
</syntaxhighlight> | |||
end | |||
==See Also== | ==See Also== | ||
{{Client player functions}} | {{Client player functions}} |
Latest revision as of 02:03, 5 December 2024
Syntax
bool isPlayerCrosshairVisible()
Returns
Returns true if the player has the crosshair visible, false otherwise.
Example
addCommandHandler("aim", function() local AimStatusText = isPlayerCrosshairVisible() and "Visbile" or "Hidden" outputChatBox("Your AIM is: ".. AimStatusText) end)
See Also
- getLocalPlayer
- getPlayerMapBoundingBox
- getPlayerMapOpacity
- isPlayerMapVisible
- resetBlurLevel
- isPlayerHudComponentVisible
- Shared
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState