You can record games in 4K resolution using ShadowPlay if your graphics card and monitor support 4K. Ensure that you have selected the desired resolution (4K) in your game settings and that the recording settings in ShadowPlay are also configured to capture at 4K resolution for the best recording quality.