Fivemanage
Fivemanage is a hosted option designed for FiveM resources. JG Used Vehicles asks Fivemanage for a temporary upload URL, then the in-game browser uploads each photo without exposing your API key to players.
Create a Fivemanage API token
- Open the Fivemanage dashboard.
- Sign in or create an account.
- Open the API token or developer settings.
- Create a token that can upload and delete files.
- Copy the token.
The dashboard labels may change. You need an API token with file access.
Configure JG Used Vehicles
Set the provider in config/config.lua:
Config.ImageStorageProvider = "fivemanage"Add the token in config/config.photos.lua:
Config.ImageStorageProviders.fivemanage = {
apiKey = "YOUR_FIVEMANAGE_API_TOKEN",
presignedEndpoint = "https://api.fivemanage.com/api/v3/file/presigned-url",
path = "used-vehicles",
metadata = "",
retentionExempt = false,
presignExpires = 900,
}Test the upload
Restart jg-usedvehicles and open the vehicle camera. The camera first uploads and removes a small test image. Take one vehicle photo after the provider check passes and confirm it appears in the photo library.
If the test fails, check:
- The API token was copied correctly.
- The token has file upload access.
- The
pathvalue is valid for your Fivemanage account. - Your server can make outbound HTTPS requests to Fivemanage.
Config fields
| Field | Required | Description |
|---|---|---|
apiKey | Yes | Fivemanage API token used to create presigned upload URLs. |
presignedEndpoint | No | Defaults to "https://api.fivemanage.com/api/v3/file/presigned-url". |
path | No | Folder path for uploaded photos. Defaults to "used-vehicles" in the example config. |
metadata | No | Optional metadata JSON string sent with the upload. |
retentionExempt | No | Optional Fivemanage retention setting. |
presignExpires | No | Presigned upload URL lifetime in seconds. Defaults to 900. |
Troubleshooting
Check that Config.ImageStorageProviders.fivemanage.apiKey is correct and still active.
Check that:
Config.ImageStorageProvideris set to"fivemanage".config/config.photos.luais loaded on the server.- Your server can make outbound HTTPS requests to Fivemanage.
- The Fivemanage API token has not expired or been revoked.
Check that the API token can delete files. JG Used Vehicles removes cancelled uploads, replaced photos and expired drafts from remote storage.
Last updated 26 August 2026