ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. dxSetTestMode

Function

dxSetTestMode

ClientDrawing (dx)Identical to MTA:SA

Turns on a test mode to check that a script handles failures: "no_mem" (creating textures fails), "low_mem" (no effect), "no_shader" (dxCreateShader fails), "none" (off).

Syntax

bool dxSetTestMode(string testMode)

Arguments

testModestring
The mode.

Returns

true on success.

Example

dxSetTestMode("no_shader")
local shader = dxCreateShader("efekt.fx") -- false
dxSetTestMode("none")

See also