Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -616,13 +616,12 @@ RegisterNUICallback("TakePhoto", function(_, cb)
QBCore.Functions.TriggerCallback("qb-phone:server:GetWebhook",function(hook)
QBCore.Functions.Notify('Touching up photo...', 'primary')
exports['screenshot-basic']:requestScreenshotUpload(tostring(hook), "files[]", function(uploadData)
local image = json.decode(uploadData)
DestroyMobilePhone()
CellCamActivate(false, false)
TriggerServerEvent('qb-phone:server:addImageToGallery', image.attachments[1].proxy_url)
TriggerServerEvent('qb-phone:server:addImageToGallery', uploadData.data.link)
Wait(400)
TriggerServerEvent('qb-phone:server:getImageFromGallery')
cb(json.encode(image.attachments[1].proxy_url))
cb(json.encode(uploadData.data.link))
QBCore.Functions.Notify('Photo saved!', "success")
OpenPhone()
end)
Expand Down
2 changes: 1 addition & 1 deletion config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Config.BillingCommissions = { -- This is a percentage (0.10) == 10%
}

-- Web hook for camera ( NOT GO PRO )
Config.Webhook = ''
Config.Webhook = 'imgur'

-- Item name for pings app ( Having a VPN sends an anonymous ping, else sends the players name)
Config.VPNItem = 'vpn'
Expand Down