- Documentation
- Shared functions
- isCursorShowing
Function
isCursorShowing
Checks whether the cursor is shown. On the client: by any resource. On the server: whether the server showed it to the player with showCursor.
Syntax
Server
bool isCursorShowing(player thePlayer)Client
bool isCursorShowing()Arguments
thePlayerplayer- The player (server only).
Differences from MTA:SA
- In MTA:SA this function is server-side only.
In MTA:SA
isCursorShowing(player playerElement)Returns
true when the cursor is visible.
Example
addEventHandler("onClientRender", root, function()
if isCursorShowing() then dxDrawText("Tryb kursora", 20, 360) end
end)