ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. 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)

See also