Skip to content
On this page

Athena.utility.screenshot.AthenaScreenshot

server/utility/screenshot.AthenaScreenshot

Constructors

constructor

new AthenaScreenshot()

Methods

buildData

Usage

Athena.utility.screenshot.AthenaScreenshot.Static buildData(player, data, index, lengthOfData): Promise<void>

Builds data from a screenshot event.

Static

Parameters

NameTypeDescription
playerPlayerAn alt:V Player Entity
datastring
indexnumber
lengthOfDatanumber

Returns

Promise<void>

Defined in

server/utility/screenshot.ts:59


takeScreenshot

Usage

Athena.utility.screenshot.AthenaScreenshot.Static takeScreenshot(player): Promise<string>

Take a screenshot of the player screen. If the data becomes corrupted or does not retrieve in time it will return null.

Static

Parameters

NameTypeDescription
playerPlayerAn alt:V Player Entity

Returns

Promise<string>

Defined in

server/utility/screenshot.ts:23

Created by Stuyk | Est. 2020