🔵
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
  • 🟦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
  • 🟦STANDALONE
    • 🔵Code Minigame
      • 💻Installation
      • ⚙️Usage
    • 🔵Menu and Task UI
      • 💻Installation
      • ⚙️Usage
      • ⁉️Common Questions
Powered by GitBook
On this page
  • Dependencies
  • Installing the resource
  1. QBCore
  2. SnrBuns

Installation

PreviousSnrBunsNextConfiguration

Last updated 7 months ago

Dependencies

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

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

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

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

Installing the resource

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

  • Add item to shared items.lua

       zatfoodcontainer                 = { name = 'zatfoodcontainer',          label = 'Food container',            weight = 1,         type = 'item',      image = 'zatfoodcontainer.png',                    unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'Some Spicy Food in here..' },
       zatburger                        = { name = 'zatburger',                 label = 'Burger',                    weight = 1,         type = 'item',      image = 'zatburger.png',                           unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'Burger..' },
       zatsprunk                        = { name = 'zatsprunk',                 label = 'Sprunk',                    weight = 1,         type = 'item',      image = 'zatsprunk.png',                           unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'Sprunk Drinks..' },
       zatecola                         = { name = 'zatecola',                  label = 'eCola',                     weight = 1,         type = 'item',      image = 'zatecola.png',                           unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'eCola Drinks..' },
       zatecolalight                    = { name = 'zatecolalight',             label = 'eCola Light',               weight = 1,         type = 'item',      image = 'zatecolalight.png',                           unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'eCola Light Drinks..' },
       zatorangotang                    = { name = 'zatorangotang',             label = 'Orang-O-tang',              weight = 1,         type = 'item',      image = 'zatorangotang.png',                           unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'orang-o-tang Drinks..' },
       zatfries                         = { name = 'zatfries',                  label = 'Fries',                     weight = 1,         type = 'item',      image = 'zatfries.png',                           unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'French Fries...' },
       -- add after latest updates
       snr_cheese          = { name = 'snr_cheese',              label = 'Cheese',                                 weight = 100,       type = 'item',      image = 'snr_cheese.png',                                           unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'Cheese' },
       snr_tomato          = { name = 'snr_tomato',              label = 'Tomato',                                 weight = 100,       type = 'item',      image = 'snr_tomato.png',                                                  unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'Tomato' },
       snr_lettuce         = { name = 'snr_lettuce',             label = 'Lettuce',                                weight = 100,       type = 'item',      image = 'snr_lettuce.png',                                              unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'Lettuce' },
       snr_pickles         = { name = 'snr_pickles',             label = 'Pickles',                                weight = 100,       type = 'item',      image = 'snr_pickles.png',                                              unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'Pickles' },
       snr_onions          = { name = 'snr_onions',              label = 'Onions',                                 weight = 100,       type = 'item',      image = 'snr_onions.png',                                               unique = true, useable = true,     shouldClose = true,    combinable = nil,   description = 'Onions' },
       snr_potatos         = { name = 'snr_potatos',             label = 'Potatos',                                weight = 100,       type = 'item',      image = 'snr_potatos.png',                                          unique = false, useable = true,     shouldClose = true,    combinable = nil,   description = 'Potatos' },
  • Add the images inside your inventory/html/images.

  • Add this in you qb-inventory /html/app.js :

        case "zatburger":
            return `<p>with: ${itemData.info.emojis}</p>`; 
        case "zatsprunk":
            return `<p>with: ${itemData.info.emojis}</p>`;     
        case "zatecola":
            return `<p>with: ${itemData.info.emojis}</p>`;  
        case "zatecolalight":
            return `<p>with: ${itemData.info.emojis}</p>`;  
        case "zatorangotang":
            return `<p>with: ${itemData.info.emojis}</p>`;  
        case "zatfries":
            return `<p>with: ${itemData.info.emojis}</p>`;
        case "zatfries":
            return `<p>with: ${itemData.info.emojis}</p>`;  

or this, if you are using ps-inventory :

        else if (itemData.name == "zatburger") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>"); 
            $(".item-info-description").html(
                "<p><strong>With : </strong><span>" +
                itemData.info.emojis + "</span></p>"
            )
        } else if (itemData.name == "zatsprunk") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>"); 
            $(".item-info-description").html(
                "<p><strong>With : </strong><span>" +
                itemData.info.emojis + "</span></p>"
            )
        } else if (itemData.name == "zatecola") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>"); 
            $(".item-info-description").html(
                "<p><strong>With : </strong><span>" +
                itemData.info.emojis + "</span></p>"
            )
        } else if (itemData.name == "zatecolalight") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>"); 
            $(".item-info-description").html(
                "<p><strong>With : </strong><span>" +
                itemData.info.emojis + "</span></p>"
            )
        } else if (itemData.name == "zatorangotang") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>"); 
            $(".item-info-description").html(
                "<p><strong>With : </strong><span>" +
                itemData.info.emojis + "</span></p>"
            )
        } else if (itemData.name == "zatfries") {
            $(".item-info-title").html("<p>" + itemData.label + "</p>"); 
            $(".item-info-description").html(
                "<p><strong>With : </strong><span>" +
                itemData.info.emojis + "</span></p>"
        )
    }
  • Add this emote to your emote menu : - rpemotes\client\ AnimationList.lua :

["fries"] = { 
    "mp_player_inteat@burger",
    "mp_player_int_eat_burger",
    "Fries",
    AnimationOptions = {
        Prop = 'prop_burger_friesbox_f',
        PropBone = 60309,
        PropPlacement = {
            0.0500,
            -0.0200,
            -0.0200,
            0.0,
            -66.7427,
            68.3677
        },
        EmoteMoving = true
    }
},
  • if you use ox-inventory :

    • Add items to ox_inventory/data/items.lua

["zatecola"] = {
	label = "eCola",
	weight = 1,
	stack = false,
	close = true,
	description = "eCola Drinks..",
	client = {
		image = "zatecola.png",
	}
},

["zatfries"] = {
	label = "Fries",
	weight = 1,
	stack = false,
	close = true,
	description = "French Fries...",
	client = {
		image = "zatfries.png",
	}
},

["zatburger"] = {
	label = "Burger",
	weight = 1,
	stack = false,
	close = true,
	description = "Burger..",
	client = {
		image = "zatburger.png",
	}
},

["zatfoodcontainer"] = {
	label = "Food container",
	weight = 1,
	stack = false,
	close = true,
	description = "Some Spicy Food in here..",
	client = {
		image = "zatfoodcontainer.png",
	}
},

["zatecolalight"] = {
	label = "eCola Light",
	weight = 1,
	stack = false,
	close = true,
	description = "eCola Light Drinks..",
	client = {
		image = "zatecolalight.png",
	}
},

["zatsprunk"] = {
	label = "Sprunk",
	weight = 1,
	stack = false,
	close = true,
	description = "Sprunk Drinks..",
	client = {
		image = "zatsprunk.png",
	}
},

["zatorangotang"] = {
	label = "Orang-O-tang",
	weight = 1,
	stack = false,
	close = true,
	description = "orang-o-tang Drinks..",
	client = {
		image = "zatorangotang.png",
	}
},
["snr_cheese"] = {
	label = "Cheese",
	weight = 100,
	stack = true,
	close = true,
	description = "Cheese",
	client = {
		image = "snr_cheese.png",
	}
},

["snr_tomato"] = {
	label = "Tomato",
	weight = 100,
	stack = true,
	close = true,
	description = "Tomato",
	client = {
		image = "snr_tomato.png",
	}
},

["snr_potatos"] = {
	label = "Potatos",
	weight = 100,
	stack = true,
	close = true,
	description = "Potatos",
	client = {
		image = "snr_potatos.png",
	}
},
["snr_pickles"] = {
	label = "Pickles",
	weight = 100,
	stack = true,
	close = true,
	description = "Pickles",
	client = {
		image = "snr_pickles.png",
	}
},

["snr_lettuce"] = {
	label = "Lettuce",
	weight = 100,
	stack = true,
	close = true,
	description = "Lettuce",
	client = {
		image = "snr_lettuce.png",
	}
},
["snr_onions"] = {
	label = "Onions",
	weight = 100,
	stack = true,
	close = true,
	description = "Onions",
	client = {
		image = "snr_onions.png",
	}
},
  • Add into ox_inventory/modules/items/client.lua:

Item('zatfoodcontainer', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerServerEvent("zat-snrbuns:server:UseContainer", slot)
		end
	end)
end)

Item('zatburger', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerServerEvent("zat-snrbuns:server:EatDrink", slot)
		end
	end)
end)

Item('zatsprunk', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerServerEvent("zat-snrbuns:server:EatDrink", slot)
		end
	end)
end)

Item('zatecola', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerServerEvent("zat-snrbuns:server:EatDrink", slot)
		end
	end)
end)

Item('zatecolalight', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerServerEvent("zat-snrbuns:server:EatDrink", slot)
		end
	end)
end)

Item('zatorangotang', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerServerEvent("zat-snrbuns:server:EatDrink", slot)
		end
	end)
end)

Item('zatfries', function(data, slot)
	ox_inventory:useItem(data, function(data)
		if data then
			TriggerServerEvent("zat-snrbuns:server:EatDrink", slot)
		end
	end)
end)
  • Add into qb-core/shared/jobs.lua

    snrbuns = {
        label = "Snr Buns",
        defaultDuty = true,
        grades = {
            ['1'] = {
                name = "Member",
                payment = 10
            },
        },
    },
  • ensure the following resources : 1 - ensure zat-snrbuns 2 - ensure zat-snrbuns_props

You will need the latest version of .

You will need the latest version of .

Make sure you have the listed above installed.

🟦
🔵
💻
qb-core
polyzone
dependencies