local keepInput = IsNuiFocusKeepingInput() function lib.setNuiFocus(allowInput, disableCursor) keepInput = IsNuiFocusKeepingInput() SetNuiFocus(true, not disableCursor) SetNuiFocusKeepInput(allowInput) end function lib.resetNuiFocus() SetNuiFocus(false, false) SetNuiFocusKeepInput(keepInput) end