screenshot-basic to capture an image, then upload it through the SDK server resource.
Start screenshot-basic before fivemesh-sdk.
Capture from the server
UsetakeServerImage when a server script wants to request a screenshot from a specific player.
Capture from the client
Use clienttakeImage when client code should trigger its own screenshot.
Options
| Option | Description |
|---|---|
path | Destination folder inside your allowed CDN path. |
filename | Stored filename. |
encoding | Screenshot encoding: png, jpg or webp. |
quality | Screenshot quality passed to screenshot-basic. |
metadata | Custom metadata stored with the uploaded object. |