JG Docs
Used Vehicles

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

  1. Open the Fivemanage dashboard.
  2. Sign in or create an account.
  3. Open the API token or developer settings.
  4. Create a token that can upload and delete files.
  5. 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/config.lua
Config.ImageStorageProvider = "fivemanage"

Add the token in config/config.photos.lua:

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 path value is valid for your Fivemanage account.
  • Your server can make outbound HTTPS requests to Fivemanage.

Config fields

FieldRequiredDescription
apiKeyYesFivemanage API token used to create presigned upload URLs.
presignedEndpointNoDefaults to "https://api.fivemanage.com/api/v3/file/presigned-url".
pathNoFolder path for uploaded photos. Defaults to "used-vehicles" in the example config.
metadataNoOptional metadata JSON string sent with the upload.
retentionExemptNoOptional Fivemanage retention setting.
presignExpiresNoPresigned upload URL lifetime in seconds. Defaults to 900.

Troubleshooting

Last updated 26 August 2026

On this page