server.cfg.
Prerequisites
Before you begin, confirm:- Your server is registered in FiveMesh.
- You have generated its Server API Key from the Server page.
- You can edit
server.cfg. screenshot-basicis installed if you plan to use screenshot exports.
Install the resource
1
Download the SDK
Download the latest release from the
FiveMesh/sdk GitHub repository.Download the fivemesh-sdk-vX.Y.Z.zip release asset, rather than a source-code archive.2
Place it in your resources folder
Add the folder to your FiveM server resources directory.Keep the resource folder named
fivemesh-sdk. Official resources such as fivemesh-logs depend on that name.3
Configure server.cfg
Add the Server API Key before starting the resource.
4
Restart the resource
Restart the server or run:
When the SDK starts, the server console prints
[FiveMesh SDK] Ready.Configuration
Keep the key in server-side configuration. Do not include it in client Lua or NUI code. It is shown only once; rotate it from the Server page if you lose it.
Logs configuration
Set these before
ensure fivemesh-sdk. ENABLE_AUTOMATIC_LOGGING remains a compatibility alias for automatic logging.
API key profiles
The default Server API Key is sufficient for official FiveMesh resources. CDN listing, deletion and purge require a Developer API Key; the Server API Key only permits CDN uploads and Logs reads/writes. Custom integrations can use Developer API Keys with narrower permissions and named profiles. Existingfm_live_* keys and older FIVEMESH_CDN_API_KEY or FIVEMESH_SERVICE_API_KEY settings remain supported for migration and advanced configurations.
keyProfile = "MUGSHOTS" resolves to FIVEMESH_API_KEY_MUGSHOTS; keyProfile = "mugshots" resolves to FIVEMESH_API_KEY_mugshots.