KYG API connection is a resource created to unify all api connection configurations and for easy invocation, you just need to set a key in this resource and just invoke this script on other scripts without having to enter the key in each resource.
- Take a screenshot and upload it automatically to imgbb/gkshop/discord/fivemerr/fivemanage.
RegisterCommand('screenshot', function()
local takeShot = exports.kyg_api:takeScreenshot()
if takeShot.res then
local alert = lib.alertDialog({
header = 'Image ID: ' .. takeShot.imgId,
content = '\n\nDelete this photo?',
centered = true,
cancel = true
})
if alert == 'confirm' then
exports.kyg_api:deleteScreenshot(takeShot.imgId)
end
else
lib.notify({ description = takeShot.msg })
end
end, false)- Brain
- ox_lib (by Overextended)
- screenshot-basic (by Cfx.re)