M MY Multiplayer: Wiki
Side
Kind

dxGetStatus

Client

Returns information about the video card and the video memory used by scripts.

table dxGetStatus()

Returns

A table with MTA's keys: VideoCardName, VideoCardRAM, VideoCardMaxAnisotropy, VideoCardNumRenderTargets, VideoMemoryFreeForMTA, VideoMemoryUsedByFonts, VideoMemoryUsedByTextures, VideoMemoryUsedByRenderTargets, SettingWindowed, SettingFOV, TotalPhysicalMemory and others. Memory in MB.

Example

local status = dxGetStatus()
print(status.VideoCardName, status.VideoCardRAM .. " MB")
if status.VideoMemoryFreeForMTA < 64 then
    print("little free video memory")
end
Coming from MTAThe keys are MTA's, but settings MYMP does not have hold fixed values (for example SettingFXQuality 3, SettingDrawDistance 100 and VideoCardPSVersion "0").

See also