Skip to main content
The FiveMesh SDK is a FiveM resource that connects your server scripts to the FiveMesh API. Use it when a resource needs to upload, list, delete or purge FiveMesh CDN objects without hand-writing HTTP requests, or to send and search server events through FiveMesh Logs. The SDK keeps your API key on the server side. Client exports call back to the server resource before anything is sent to FiveMesh.
Do not place a FiveMesh API key in client-side Lua, NUI code or browser bundles. Configure the key as a server ConVar and let the SDK call the API from the server resource.

What the SDK covers

The Server API Key supports CDN uploads and Logs reads/writes. CDN listing, deletion and purge require a Developer API Key with those permissions. Cache and Voice lifecycle operations use the dashboard. Read SDK Logs for custom events, identifier enrichment and paginated queries.

Start here

Install the SDK

Add the resource, configure FIVEMESH_API_KEY and confirm the SDK starts.

Call server exports

Upload, list, delete and purge CDN objects from server-side Lua or JavaScript.

Capture screenshots

Use screenshot-basic with takeServerImage or client takeImage.

Create upload URLs

Give another script a short-lived upload target without exposing your API key.

Permissions

Use these permissions when creating the API key:
Use a Developer API Key scoped to the path your resource owns, such as /phone, /screenshots or /inventory. This limits what the script can access if the key is copied by mistake.