I tried searching for a native that would retrieve the screen type that’s selected in Settings → Advanced Graphics (Full Screen, Windowed, etc) but I couldn’t find it.
This would be a useful addition to the native that allows us to retrieve the active screen resolution.
We are looking into multiple behavior signals to determine which players should be manually checked if they are using cheating software that’s currently undetected by FiveM. For example, some cheats require players to use “Windowed” mode, which is not used by 99% of our players.
For example, some cheats require players to use “Windowed” mode, which is not used by 99% of our players.
This makes no sense. Next thing you will ask is get player videocard manufacturer native because most cheaters use Nvidia GPUs? Or maybe the same for Intel CPUs? You know – cheaters love Intel CPUs for sure!
You’re in luck. Both this and whether the game is in windowed mode are in the same CSettingsManager struct. In fact, the fields are like next to one another.
– Function to check display mode
function CheckDisplayMode()
local displayMode = GetResourceKvpString(“fullscreen”)
if displayMode == "true" then
print("The player is playing in fullscreen mode.")
elseif displayMode == "false" then
print("The player is playing in windowed mode.")
else
print("Display mode could not be determined.")
end