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. The SDK keeps your service key on the server side. Client exports call back to the server resource before anything is sent to FiveMesh.
Do not place a FiveMesh service 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

FiveMesh Cache helpers are not part of the first SDK release.

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 service key.

Permissions

Use these permissions when creating the service key:
Scope the service key 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.