[QBCORE] Des-Polaroid (A simple Polaroid script)

A script by Desypher

No reviews yet.
[QBCORE] Des-Polaroid (A simple Polaroid script) main image

Full Description

Des Polaroid QB-Core Demo

Price $10
Tebex Shop Link

Des-Polaroid

A Polaroid script for QB-Core

Dependencies

QB-Core
QB-Phone (Just for the webhook to upload screenshots, can use a custom webhook)
QB-Shops
QB-Inventory
dpemotes

Installation

  1. Add it to your FiveM server resource folder
  2. Add images to qb-inventory->html->images
  3. Add the following items to qb-core->Shared->items.lua
--Polaroid
	["blankpolaroid"] 					 = {["name"] = "blankpolaroid", 				["label"] = "Blank Polaroid", 	     			["weight"] = 0, 		["type"] = "item", 		["image"] = "blankpolaroid.png", 				["unique"] = false,   	["useable"] = true,    ["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "A blank polaroid you can develop"},
	["polaroid"] 					 = {["name"] = "polaroid", 				["label"] = "Polaroid Picture", 	     			["weight"] = 0, 		["type"] = "item", 		["image"] = "polaroid.png", 				["unique"] = true,   	["useable"] = true,    ["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = ""},
	["polaroidcamera"] 					 = {["name"] = "polaroidcamera", 				["label"] = "Polaroid Camera", 	     			["weight"] = 5, 		["type"] = "item", 		["image"] = "polaroid-camera.png", 				["unique"] = true,   	["useable"] = true,    ["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = ""},
  1. Add the following to qb-shops->config.lua->Config.Products
  ["polaroid"] = {
        [1] = {
            name = 'blankpolaroid',
            price = 5,
            amount = 999999,
            info = {},
            type = 'item',
            slot = 1,
        },
        [2] = {
            name = 'polaroidcamera',
            price = 50,
            amount = 50,
            info = {},
            type = 'item',
            slot = 1,
        }
    },
  1. Add the following to qb-shops->config.lua->Config.Locations
  -- Polaroid Shop
    ["polaroid"] = {
        ["label"] = "Polaroid Shop",
        ["coords"] = vector4(-1233.13, -1480.37, 4.34, 121.81),
        ["ped"] = 'a_f_y_tourist_01',
        ["scenario"] = "WORLD_HUMAN_COP_IDLES",
        ["radius"] = 1.5,
        ["targetIcon"] = "fas fa-camera",
        ["targetLabel"] = "Open Polaroid Shop",
        ["products"] = Config.Products["polaroid"],
        ["showblip"] = true,
        ["blipsprite"] = 184,
        ["blipcolor"] = 83
    },
  1. Add this to DPEmotes->client->AnimationList.lua
	["polaroid"] = {
        "paper_1_rcm_alt1-8",
        "player_one_dual-8",
        "Polaroid",
        AnimationOptions = {
            Prop = "p_cs_polaroid_s",
            PropBone = 28422,
            PropPlacement = {
                0.1000,
                0.0200,
                -0.0300,
                0.1000,
                0.00,
                78.999
            },
            EmoteLoop = false,
            EmoteMoving = true,
        }
    },
Code is accessible Yes
Subscription-based No
Lines (approximately) 527
Requirements QB-Core, QB-Phone, QB-Inventory, QB-Shop, dpemotes
Support Yes