ScreenCapture
A FiveM resource for screenshots, WebM recording, remote uploads, and WebRTC game-view streams.
ScreenCapture is a modern replacement for screenshot-basic with compatibility exports for existing resources. It captures still images, records WebM video through the player’s NUI, uploads media to remote APIs, and can publish one-to-many live game-view streams through Cloudflare Realtime SFU.
What You Can Build
Section titled “What You Can Build”- Moderation tools that capture evidence from a player’s current game view.
- Admin panels that upload screenshots or recordings to an external media service.
- Incident review workflows that store local WebM captures for later processing.
- Live staff spectating tools that do not relay video through FiveM events.
Main Capabilities
Section titled “Main Capabilities”| Capability | Use it when |
|---|---|
| Server screenshots | You need base64 data URIs, binary blobs, or direct remote uploads. |
| WebM video capture | You need timed or manually stopped recordings from a player’s NUI. |
| Remote upload helpers | You want the resource to send screenshots or videos to an API endpoint. |
| Live streaming | You need browser viewers connected through Cloudflare Realtime SFU. |
| Compatibility exports | Existing resources call screenshot-basic exports. |
Quick Path
Section titled “Quick Path”- Install the resource and ensure it before resources that call its exports.
- Review protocol and bandwidth settings for your server environment.
- Use the screenshot, video, or live streaming APIs from your own resources.
- Build browser viewers with
@screencapture/liveor NUI capture tools with@screencapture/gameview. - Check realtime workflow examples and operations when tuning transfer speeds or troubleshooting captures.