Fivemerr
  • Fivemerr
    • πŸ€“Welcome to Fivemerr
  • API
    • βœ…Setup
    • πŸ–ΌοΈImages
    • πŸ”ŠAudio
    • πŸŽ₯Video
    • ℹ️Logs
  • Features
    • πŸ”„DB Backups
    • πŸ”‰Media
    • πŸ“­API Tokens
    • πŸ’»Servers
    • πŸͺ’Logs
    • πŸ•ΈοΈWebhooks
  • Script Integrations
    • πŸ“Έscreenshot-basic
    • 🀳ShareX
    • ℹ️Logs
      • ℹ️fm-logs
      • ℹ️ox_logs
      • ℹ️qb-logs
    • πŸ“ΆPhone Scripts
      • πŸ“³QBCore Phone
      • πŸ“³LB Phone
      • πŸ“³Road Phone
      • πŸ“³NPWD
      • πŸ“³JP Phone
      • πŸ“³nPhone
      • πŸ“΄okokPhone
      • πŸ“³GKS Phone
      • πŸ“³YSeries Phone
      • πŸ“΅QS Phone
    • πŸ¦₯Project Sloth
      • πŸ¦₯ps-mdt
      • πŸ¦₯ps-adminmenu
      • πŸ¦₯ps-camera
    • πŸ’ͺPower Scripts
      • πŸ’ͺpower_dashcams
    • πŸ“ΉSpy Scripts
      • πŸ“Ήspy-bodycam
Powered by GitBook
On this page
  • Set your config to "Custom".
  • Create a MEDIA API key and add it below to all 3
  • On UploadMethods at Custom. Replace for this
  1. Script Integrations
  2. Phone Scripts

LB Phone

PreviousQBCore PhoneNextRoad Phone

Last updated 10 months ago

Set your config to "Custom".

located: lb-phone/config/config.lua

image

Create a MEDIA API key and add it below to all 3

Located: lb-phone/server/apiKeys.lua

On UploadMethods at Custom. Replace for this

Located: lb-phone/shared/upload.lua

    Custom = {
        Video = {
            url = "https://api.fivemerr.com/v1/media/videos",
            field = "file", -- The field name (formData)
            headers = { -- headers to send when uploading
                ["Authorization"] = "API_KEY"
            },
            error = {
                path = "success", -- The path to the error value (res.success)
                value = false -- If the path is equal to this value, it's an error
            },
            success = {
                path = "url" -- The path to the video file (res.url)
            },
        },
        Image = {
            url = "https://api.fivemerr.com/v1/media/images",
            field = "file", -- The field name (formData)
            headers = { -- headers to send when uploading
                ["Authorization"] = "API_KEY"
            },
            error = {
                path = "success", -- The path to the error value (res.success)
                value = false -- If the path is equal to this value, it's an error
            },
            success = {
                path = "url" -- The path to the image file (res.url)
            },
        },
        Audio = {
            url = "https://api.fivemerr.com/v1/media/audios",
            field = "file", -- The field name (formData)
            headers = { -- headers to send when uploading
                ["Authorization"] = "API_KEY"
            },
            error = {
                path = "success", -- The path to the error value (res.success)
                value = false -- If the path is equal to this value, it's an error
            },
            success = {
                path = "url" -- The path to the audio file (res.url)
            },
        },
    },

Should look like this now:

Restart your phone script and you're all set!

image
image
πŸ“Ά
πŸ“³