Gui.takeScreenshot

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Takes screenshot of game screen and puts at /screenshots/ip_port folder. Accessible in CEF via screenshots:// scheme. (Will be available in 0.4)


Syntax

gui.takeScreenshot(name, type, quality, compQuality);

Required Arguments

  • name: String
  • type: Type of screenshot (0 - JPG, 1 - PNG, 2 - BMP)
  • quality: Quality (0 - 100)
  • compressionQuality: Compression quality (0 - 100)

Example

mp.gui.takeScreenshot("random.png", 1, 100, 0);

See also