# dxGetStatus (Client)

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

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Screen drawing
- **URL**: https://wiki.mymp.gg/en/dxGetStatus

## Syntax

```lua
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

```lua
local status = dxGetStatus()
print(status.VideoCardName, status.VideoCardRAM .. " MB")
if status.VideoMemoryFreeForMTA < 64 then
    print("little free video memory")
end
```

### Coming from MTA

The keys are MTA's, but settings MYMP does not have hold fixed values (for example `SettingFXQuality` 3, `SettingDrawDistance` 100 and `VideoCardPSVersion` `"0"`).

## See also

- [getScreenSize (Client)](https://wiki.mymp.gg/en/getScreenSize.md): Returns the size of the game's screen in pixels.
- [dxCreateRenderTarget (Client)](https://wiki.mymp.gg/en/dxCreateRenderTarget.md): Creates a render target: an image the dx functions can draw into and that can be used like any other image.
- [dxCreateFont (Client)](https://wiki.mymp.gg/en/dxCreateFont.md): Creates a font from a font file in the resource, for the text functions.
