🔵
ZaT Scripts
  • Welcome
  • General information
  • 🟦QBCore
    • 🔵Amazon
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵Uber Eats
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵Foodie
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵Tap To Order
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵NoteBook
      • 💻Installation
      • ⚙️Configuration
    • 🔵Elevator
      • 💻Installation
      • ⚙️Configuration
    • 🔵Car Rental
      • 💻Installation
      • ⚙️Configuration
    • 🔵Crafting
      • 💻Installation
      • ⚙️Configuration
      • 📄Blueprints
      • 📄Reputations
      • ⚙️Others
    • 🔵Wash Money
      • 💻Installation
      • ⚙️Configuration
      • 💰More
    • 🔵Store Robbery
      • 💻Installation
      • ⚙️Configuration
    • 🔵Pacific Robbery
      • 💻Installation
      • ⚙️Configuration
    • 🔵Weed
      • 💻Installation
      • ⚙️Configuration
      • ⚙️Genetics
    • 🔵SnrBuns
      • 💻Installation
      • ⚙️Configuration
      • ⚙️Others
    • 🔵Mining PC
      • 💻Installation
      • ⚙️Configuration
      • ⚙️Others
      • 🛒Shops
    • 🔵Garbage Job
      • 💻Installation
      • ⚙️Configuration
      • ⁉️Common Questions
    • 🔵NPC Dialog
      • 💻Installation
      • ⚙️Configuration
      • 💡Reputations
    • 🔵Roof Running
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵Laundromat
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵SNR Restaurants
      • 💻Installation
      • ⚙️Configuration
      • ⁉️How To add a new restaurant
    • 🔵Farming & moonshine
      • 💻Installation
      • ⚙️Configuration
      • 🧑‍🔬Genetics
    • 🔵Art Heist
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵Maze Bank Heist
      • 💻Installation
      • ⚙️Configuration
    • 🔵Clothing Store Heist
      • 💻Installation
      • ⚙️Configuration
    • 🔵ATM Heist
      • 💻Installation
      • ⚙️Configuration
    • 🔵Cash Exchange Heist
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵MDT
      • 💻Installation
      • ⚙️Configuration
      • ⚠️Dispatch
      • 🕖Events
    • 🔵Gang
      • 💻Installation
      • Exports
      • ⚙️Configuration
      • 🚩Gang Creation
      • 📋Dashboard
      • Members
      • Contracts
      • Turfs
      • Transactions
      • Market
      • Wars
      • Leaderboard
      • Cameras
      • HQ +
    • 🔵GPS Tracker
      • 💻Installation
      • ⚙️Configuration
    • 🔵Pause Menu
      • 💻Installation
      • ⚙️Configuration
    • 🔵Perks
      • 💻Installation
      • ⚙️Configuration
      • Exports
      • ⁉️How To ?
    • 🔵Fleeca
      • 💻Installation
      • ⚙️Configuration
    • 🔵Whiteboard
      • 💻Installation
      • ⚙️Configuration
    • 🔵Printer and Camera
      • 💻Installation
      • ⚙️Configuration
  • 🟦ESX
    • 🔵Amazon
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵Uber Eats
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵Foodie
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵Tap To Order
      • 💻Installation
      • ⚙️Configuration
      • ❔Common questions
    • 🔵NoteBook
      • 💻Installation
      • ⚙️Configuration
    • 🔵Crafting
      • 💻Installation
      • ⚙️Configuration
      • 📄Blueprints
      • 📄Reputations
      • ⚙️Others
    • 🔵Elevator
      • 💻Installation
      • ⚙️Configuration
    • 🔵Car Rental
      • 💻Installation
      • ⚙️Configuration
    • 🔵Wash Money
      • 💻Installation
      • ⚙️Configuration
    • 🔵Store Robbery
      • 💻Installation
      • ⚙️Configuration
    • 🔵Pacific Robbery
      • 💻Installation
      • ⚙️Configuration
    • 🔵Weed
      • 💻Installation
      • ⚙️Configuration
      • ⚙️Genetics
    • 🔵SnrBuns
      • 💻Installation
      • ⚙️Configuration
      • ⚙️Others
    • 🔵Mining PC
      • 💻Installation
      • ⚙️Configuration
      • ⚙️Others
      • 🛒Shops
    • 🔵Garbage Job
      • 💻Installation
      • ⚙️Configuration
      • ⁉️Common Questions
    • 🔵NPC Dialog
      • 💻Installation
      • ⚙️Configuration
      • 💡Reputations
    • 🔵Roof Running
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵Laundromat
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵SNR Restaurants
      • 💻Installation
      • ⚙️Configuration
      • ⁉️How To add a new restaurant
    • 🔵Farming & moonshine
      • 💻Installation
      • ⚙️Configuration
      • 🧑‍🔬Genetics
    • 🔵Art Heist
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵Maze Bank Heist
      • 💻Installation
      • ⚙️Configuration
    • 🔵Clothing Store Heist
      • 💻Installation
      • ⚙️Configuration
    • 🔵ATM Heist
      • 💻Installation
      • ⚙️Configuration
    • 🔵Cash Exchange Heist
      • 💻Installation
      • ⚙️Configuration
      • 🚩Gang App
    • 🔵Gang
      • 💻Installation
      • Exports
      • ⚙️Configuration
      • 🚩Gang Creation
      • 📋Dashboard
      • Members
      • Contracts
      • Turfs
      • Transactions
      • Market
      • Wars
      • Leaderboard
      • Cameras
      • HQ +
    • 🔵GPS Tracker
      • 💻Installation
      • ⚙️Configuration
    • 🔵Pause Menu
      • 💻Installation
      • ⚙️Configuration
    • 🔵Perks
      • 💻Installation
      • ⚙️Configuration
      • Exports
      • ⁉️How To ?
    • 🔵Fleeca
      • 💻Installation
      • ⚙️Configuration
    • 🔵Whiteboard
      • 💻Installation
      • ⚙️Configuration
    • 🔵Printer and Camera
      • 💻Installation
      • ⚙️Configuration
  • 🟦STANDALONE
    • 🔵Code Minigame
      • 💻Installation
      • ⚙️Usage
    • 🔵Menu and Task UI
      • 💻Installation
      • ⚙️Usage
      • ⁉️Common Questions
Powered by GitBook
On this page
  • Dependencies :
  • Inventories :
  • ENSURE RESOURCES
  1. ESX
  2. Printer and Camera

Installation

PreviousPrinter and CameraNextConfiguration

Last updated 1 day ago

Dependencies :

ES EXTENDED

You will need the latest version of .

  • Extract the contents of the archive to your resources folder.

  • Start the resource near the top of your resources in your server.cfg.


Inventories :

QB INVENTORY

Add the items below to the qb-core/shared/items.lua:

    printer                             = { name = 'printer',           label = 'Printer',      weight = 100, type = 'item', image = 'printer.png',     unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
    document                            = { name = 'document',          label = 'Document',     weight = 100, type = 'item', image = 'document.png',    unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
    camera                              = { name = 'camera',            label = 'Camera',       weight = 100, type = 'item', image = 'camera.png',      unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
    photo                               = { name = 'photo',             label = 'Photo',        weight = 100, type = 'item', image = 'photo.png',       unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
    photo_album                         = { name = 'photo_album',       label = 'Photo Album',        weight = 100, type = 'item', image = 'photo_album.png',       unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
    document_folder                     = { name = 'document_folder',   label = 'Document Folder',        weight = 100, type = 'item', image = 'document_folder.png',       unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
    envelope                            = { name = 'envelope',            label = 'Envelope ',        weight = 100, type = 'item', image = 'envelope.png',       unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
QS INVENTORY

Add the items below into your qs-inventory/shared/items.lua

['printer'] = {
    ['name'] = 'printer',
    ['label'] = 'Printer',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'printer.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = ''
},
['document'] = {
    ['name'] = 'document',
    ['label'] = 'Document',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'document.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = ''
},
['camera'] = {
    ['name'] = 'camera',
    ['label'] = 'Camera',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'camera.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = ''
},
['photo'] = {
    ['name'] = 'photo',
    ['label'] = 'Photo',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'photo.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = ''
},
['photo_album'] = {
    ['name'] = 'photo_album',
    ['label'] = 'Photo Album',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'photo_album.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = ''
},
['document_folder'] = {
    ['name'] = 'document_folder',
    ['label'] = 'Document Folder',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'document_folder.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = ''
},
['envelope'] = {
    ['name'] = 'envelope',
    ['label'] = 'Envelope ',
    ['weight'] = 100,
    ['type'] = 'item',
    ['image'] = 'envelope.png',
    ['unique'] = true,
    ['useable'] = true,
    ['shouldClose'] = true,
    ['combinable'] = nil,
    ['description'] = ''
},

Add this into qs-inventory/server/custom/misc/CreateUseableItem.lua

local PrinterItems = {
    printer     = {
        item = "printer",
        prop = "v_res_printer",
    },
    document    = {
        item = "document",
        prop = nil,
    },
    camera    = {
        item = "camera",
        prop = nil,
    },
    photo    = {
        item = "photo",
        prop = nil,
    },
    photo_album = {
        item = "photo_album",
        prop = nil,
    },
    document_folder = {
        item = "document_folder",
        prop = nil,
    },
    envelope = {
        item = "envelope",
        prop = nil,
    },
}

CreateUsableItem(PrinterItems.printer.item, function(source, item)
    local src = source
    TriggerClientEvent('zat-printer:client:PreviewProp', src, PrinterItems.printer.item, PrinterItems.printer.prop)
end)
CreateUsableItem(PrinterItems.camera.item, function(source, item)
    local src = source
    TriggerClientEvent('zat-printer:client:OpenCamera', src)
end)
CreateUsableItem(PrinterItems.document.item, function(source, item)
    local src = source
    TriggerClientEvent("zat-printer:client:PreviewDocument", src, item.info)
end)
CreateUsableItem(PrinterItems.photo.item, function(source, item)
    local src = source
    TriggerClientEvent("zat-printer:client:PreviewPhoto", src, item.info)
end)
CreateUsableItem(PrinterItems.photo_album.item, function(source, item)
    local src = source
    local data = {
        info = item.info, 
        slot = item.slot
    }
    TriggerClientEvent("zat-printer:client:OpenPhotoAlbum", src, data)
end)
CreateUsableItem(PrinterItems.document_folder.item, function(source, item)
    local src = source
    local data = {
        info = item.info, 
        slot = item.slot
    }
    TriggerClientEvent("zat-printer:client:OpenFolder", src, data)
end)
CreateUsableItem(PrinterItems.envelope.item, function(source, item)
    local src = source
    local data = {
        info = item.info, 
        slot = item.slot
    }
    TriggerClientEvent("zat-printer:client:OpenEnvelope", src, data)
end)
OX INVENTORY

Add the items below into your ox-inventory/data/items.lua

["printer"] = {
    label = "Printer",
    weight = 100,
    stack = false,
    close = true,
    description = "",
    client = {
        image = "printer.png",
    }
},
["document"] = {
    label = "Document",
    weight = 100,
    stack = false,
    close = true,
    description = "",
    client = {
        image = "document.png",
    }
},
["camera"] = {
    label = "Camera",
    weight = 100,
    stack = false,
    close = true,
    description = "",
    client = {
        image = "camera.png",
    }
},
["photo"] = {
    label = "Photo",
    weight = 100,
    stack = false,
    close = true,
    description = "",
    client = {
        image = "photo.png",
    }
},
["photo_album"] = {
    label = "Photo Album",
    weight = 100,
    stack = false,
    close = true,
    description = "",
    client = {
        image = "photo_album.png",
    }
},
["document_folder"] = {
    label = "Document Folder",
    weight = 100,
    stack = false,
    close = true,
    description = "",
    client = {
        image = "document_folder.png",
    }
},
["envelope"] = {
    label = "Envelope ",
    weight = 100,
    stack = false,
    close = true,
    description = "",
    client = {
        image = "envelope.png",
    }
},

Add this into ox_inventory/modules/items/client.lua

local PrinterItems = {
    printer     = {
        item = "printer",
        prop = "v_res_printer",
    },
    document    = {
        item = "document",
        prop = nil,
    },
    camera    = {
        item = "camera",
        prop = nil,
    },
    photo    = {
        item = "photo",
        prop = nil,
    },
    photo_album = {
        item = "photo_album",
        prop = nil,
    },
    document_folder = {
        item = "document_folder",
        prop = nil,
    },
    envelope = {
        item = "envelope",
        prop = nil,
    },
}

Item(PrinterItems.printer.item, function(data, slot)
    ox_inventory:useItem(data, function(data)
        if data then
            TriggerEvent('zat-printer:client:PreviewProp', PrinterItems.printer.item, PrinterItems.printer.prop)
        end
    end)
end)

Item(PrinterItems.camera.item, function(data, slot)
    ox_inventory:useItem(data, function(data)
        if data then
            TriggerEvent('zat-printer:client:OpenCamera')
        end
    end)
end)


Item(PrinterItems.document.item, function(data, slot)
    ox_inventory:useItem(data, function(data)
        if data then
            TriggerEvent("zat-printer:client:PreviewDocument", slot.metadata)
        end
    end)
end)

Item(PrinterItems.photo.item, function(data, slot)
    ox_inventory:useItem(data, function(data)
        if data then
            TriggerEvent("zat-printer:client:PreviewPhoto", slot.metadata)
        end
    end)
end)
Item(PrinterItems.photo_album.item, function(data, slot)
    ox_inventory:useItem(data, function(data)
        if data then
            local data = {
                info = slot.metadata, 
                slot = slot.slot
            }
            TriggerEvent("zat-printer:client:OpenPhotoAlbum", data)
        end
    end)
end)
Item(PrinterItems.document_folder.item, function(data, slot)
    ox_inventory:useItem(data, function(data)
        if data then
            local data = {
                info = slot.metadata, 
                slot = slot.slot
            }
            TriggerEvent("zat-printer:client:OpenFolder", data)
        end
    end)
end)

Item(PrinterItems.envelope.item, function(data, slot)
    ox_inventory:useItem(data, function(data)
        if data then
            local data = {
                info = slot.metadata, 
                slot = slot.slot
            }
            TriggerEvent("zat-printer:client:OpenEnvelope", data)
        end
    end)
end)

ENSURE RESOURCES

es_extended
🟦
🔵
💻
Page cover image