IsPlayerCrosshairVisible: Difference between revisions
Jump to navigation
Jump to search
Laxante101 (talk | contribs) (→Syntax) |
Laxante101 (talk | contribs) |
||
Line 12: | Line 12: | ||
=Examples= | =Examples= | ||
function aim() | function aim() | ||
if isPlayerCrosshairVisible() then | if isPlayerCrosshairVisible() then | ||
Line 18: | Line 19: | ||
outputChatBox("your crosshair is not visible") | outputChatBox("your crosshair is not visible") | ||
end | end | ||
end | end | ||
addCommandHandler("aimcheck", aim) | addCommandHandler("aimcheck", aim) |
Revision as of 21:18, 4 December 2024
Syntax
bool isPlayerCrosshairVisible()
Return
a
Examples
function aim()
if isPlayerCrosshairVisible() then outputChatBox("your sight is visible") else outputChatBox("your crosshair is not visible") end
end addCommandHandler("aimcheck", aim)
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