SetMouseCursorVisible
DocsSetMouseCursorVisible(isVisible)Description
Toggles the visibility of the cursor. Do note that if the game loses focus and then regains it, the cursor will become visible again.
Parameters
| Name | Type | Description |
|---|---|---|
isVisible | BOOL | If the mouse cursor is visible |
Returns
voidThis native does not return a value.
Examples
Official
Citizen.CreateThread(function()
local menuType = "FE_MENU_VERSION_CORONA_LOBBY"
ActivateFrontendMenu(GetHashKey(menuType), false, -1)
--100 works as well
Citizen.Wait(1000)
--Hide frontend cursor
SetMouseCursorVisible(false)
end)