[QBCore / ESX] Camera photos

Description

Take photos using your camera and share them with other players

Showcase

Features

  • Photo & camera as an item
  • Supports any inventory script (with item metadata)
  • ESX & QBCore compatible

Config

framework = nil -- DONT TOUCH

-- editable functions
function RegisterPictureItem()
    -- qbcore
    --framework.Functions.CreateUseableItem("photo", function(source, item)
    --    TriggerClientEvent("hito_photos:showPicture", source, item.info)
    --end)

    -- your framework/inventory function here
end

function AddPicture(playerId, metadata)
    -- qbcore
    --local player = framework.Functions.GetPlayer(playerId)
    --player.Functions.AddItem("photo", 1, nil, metadata)

    -- your framework/inventory function here
end

function Notification(message, type)
    -- qbcore
    --if type == "info" then type = "primary" end
    --TriggerEvent("QBCore:Notify", message, type)

    -- esx
    --TriggerEvent("esx:showNotification", message, type)
end

-- config
Config = {
    imgurApi = "", -- https://imgur.com/account/settings/apps
}

Locale = {
    printing_picture = "Printing picture... It can take some time!",
    printed = "Printed picture! Check it out."
}

Buy

Code is accessible No
Subscription-based No
Lines (approximately) 300
Requirements screenshot-basic, inventory script that supports item metadata
Support Yes
1 Like