A Polaroid Camera resource for QBCore or Qbox Framework, within the script we focused on usability and a clean UI.
To get started with the MTC Polaroid resource, follow these steps:
- Clone this repository and place the files into your designated resources folder.
- Rename the script file to
mtc-polaroid
. - Configure the webhook in the
server/main.lua
file. - Set up the necessary inventory items.
- Use the Polaroid Camera with the
polaroid_paper
item in you're inventory.
You can find the images for the items mentioned below in the images
directory.
qb-core
['polaroid_camera'] = {
['name'] = 'polaroid_camera',
['label'] = 'Polaroid camera',
['weight'] = 5000,
['type'] = 'item',
['image'] = 'polaroid.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Did we just go back in time?'
},
['polaroid'] = {
['name'] = 'polaroid',
['label'] = 'Polaroid image',
['weight'] = 10,
['type'] = 'item',
['image'] = 'photo.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = 'Cool image bro'
},
['polaroid_paper'] = {
['name'] = 'polaroid_paper',
['label'] = 'Polaroid paper',
['weight'] = 10,
['type'] = 'item',
['image'] = 'photo.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = false,
['combinable'] = nil,
['description'] = 'Some paper'
}
ox_inventory
["polaroid_camera"] = {
label = "Polaroid camera",
weight = 5000,
stack = false,
close = true,
description = "Did we just go back in time?",
client = {
image = "polaroid.png",
}
},
["polaroid_paper"] = {
label = "Polaroid paper",
weight = 10,
stack = true,
close = false,
description = "Some paper",
client = {
image = "photo.png",
}
},
["polaroid"] = {
label = "Polaroid image",
weight = 10,
stack = false,
close = true,
description = "Cool image bro",
client = {
image = "photo.png",
}
}