server.cfg.
Prerequisites
Before you begin, confirm:- FiveMesh CDN is set up for the workspace.
- You have a service key with the permissions your script needs.
- You can edit
server.cfg. screenshot-basicis installed if you plan to use screenshot exports.
Install the resource
Download the SDK
Download the latest release from the
FiveMesh/sdk GitHub repository.Releases include a built and zipped FiveM resource.Place it in your resources folder
Add the folder to your FiveM server resources directory.The examples in these docs assume the folder is named
fivemesh-sdk. If you use another folder name, use that name in ensure and exports[...].When the SDK starts, the server console prints
[FiveMesh SDK] Ready.Configuration
| ConVar | Default | Description |
|---|---|---|
FIVEMESH_API_KEY | none | Service key created in the FiveMesh dashboard. |
FIVEMESH_API_KEY_<PROFILE_NAME> | none | Optional case-sensitive API key profile used by SDK calls with keyProfile. |
FIVEMESH_API_URL | https://api.fivemesh.io/v1 | FiveMesh API base URL. |
FIVEMESH_SDK_DEBUG | false | Prints the resolved API base URL when the resource starts. |
FIVEMESH_CDN_API_KEY and FIVEMESH_SERVICE_API_KEY are accepted as fallback key names, but new installs should use FIVEMESH_API_KEY.
API key profiles
UseFIVEMESH_API_KEY for the default SDK key. If you want separate keys for specific resources, add profile keys with the exact profile name in the ConVar suffix.
keyProfile = "MUGSHOTS" resolves to FIVEMESH_API_KEY_MUGSHOTS; keyProfile = "mugshots" resolves to FIVEMESH_API_KEY_mugshots.