Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Script QB/Meta Camera Script

zeu

Gold Elite
Joined
Feb 20, 2022
Messages
93
Reaction score
137
Points
256
Location
Turkey




ITEMS
qb-core/shared.lua

Code:
["kamera"]                    ={["name"] = "kamera"                 , ["label"] = "Kamera"                      , ["weight"] =   950 , ["type"] = "item", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Fotoğraf Makinası."},
    ["resim"]                    ={["name"] = "resim"                 , ["label"] = "Resim"                      , ["weight"] =   950 , ["type"] = "item", ["unique"] = true, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Çekilmiş bir adet fotoğraf."},

FOR UPLOADS

on your base script client.lua search this codes


Code:
exports('screenShot', function()

and replace it
Code:
exports('screenShot', function()
   if screenShotCD == 0 then
        screenShotCD = 0
        callbackData = nil
        SendNUIMessage({type = 'screenShot'})
        while callbackData == nil do
            Citizen.Wait(1000)
            screenShotCD = screenShotCD + 1
            if screenShotCD > 10 then
                break
            end
        end
        screenShotCD = 0
        if callbackData then
            if callbackData.message then
                print("HATA: "..callbackData.message)
                return false
            else
                return callbackData.attachments[1].proxy_url
            end
        else
            print("HATA: Resim Çekilemedi")
            return "Resim Çekilemedi"
        end
    end
end)
 

AllyaM

Silver Elite
Joined
May 25, 2021
Messages
48
Reaction score
15
Points
156
Can someone make it ? I'm very confused how to use it. I would appreciate some help on this, i'm using esx.
 
Last edited:

badbristol

Gold Elite
Joined
Sep 8, 2021
Messages
103
Reaction score
440
Points
321
Location
gg




ITEMS
qb-core/shared.lua

Code:
["kamera"]                    ={["name"] = "kamera"                 , ["label"] = "Kamera"                      , ["weight"] =   950 , ["type"] = "item", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Fotoğraf Makinası."},
    ["resim"]                    ={["name"] = "resim"                 , ["label"] = "Resim"                      , ["weight"] =   950 , ["type"] = "item", ["unique"] = true, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Çekilmiş bir adet fotoğraf."},

FOR UPLOADS

on your base script client.lua search this codes


Code:
exports('screenShot', function()

and replace it
Code:
exports('screenShot', function()
   if screenShotCD == 0 then
        screenShotCD = 0
        callbackData = nil
        SendNUIMessage({type = 'screenShot'})
        while callbackData == nil do
            Citizen.Wait(1000)
            screenShotCD = screenShotCD + 1
            if screenShotCD > 10 then
                break
            end
        end
        screenShotCD = 0
        if callbackData then
            if callbackData.message then
                print("HATA: "..callbackData.message)
                return false
            else
                return callbackData.attachments[1].proxy_url
            end
        else
            print("HATA: Resim Çekilemedi")
            return "Resim Çekilemedi"
        end
    end
end)
 
Top