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 ​
Name | Type | Description |
---|---|---|
player | Player | An alt:V Player Entity |
data | string | |
index | number | |
lengthOfData | number |
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 ​
Name | Type | Description |
---|---|---|
player | Player | An alt:V Player Entity |
Returns ​
Promise
<string
>