# B4DBOY DEV MCDONALD'S FOR QB CORE FRAMEWORK.

INFORMATION - MCDONALD'S BY B4DBOY {BG DEVELOPER}'
DISCORD - https://discord.gg/gNcatbjMkf


MAP : LIBERTY CITY | CITY UNKNOWN ROLEPLAY


QBShared.Items = {

    -- B4DBOY DEV MCDONALD S FOR QB CORE FRAMEWORK.
    -- MCDONALD'S
	-- FOOD	
	["mcdonald's_beef_burger"] 		 = {["name"] = "mcdonald's_beef_burger", 		["label"] = "Mcdonald's Beef Burger", 					["weight"] = 250, 		["type"] = "item", 		["image"] = "mcdonald's_beef_burger.png", 			["unique"] = false, 	["useable"] = true, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "Sates Hunger"},
	["mcdonald's_bigmac"] 			 = {["name"] = "mcdonald's_bigmac", 			["label"] = "Mcdonald's Big Mac", 				["weight"] = 300, 		["type"] = "item", 		["image"] = "mcdonald's_bigmac.png", 			["unique"] = false, 	["useable"] = true, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "Sates Hunger"},
	["mcdonald's_chicken_junior"] 	 = {["name"] = "mcdonald's_chicken_junior", 	["label"] = "Mcdonald's Chicken Junior", 					["weight"] = 310, 		["type"] = "item", 		["image"] = "mcdonald's_chicken_junior.png", 				["unique"] = false, 	["useable"] = true, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "Sates Hunger"},
	["mcdonald's_chicken_mcnuggets_6_pc"] 	= {["name"] = "mcdonald's_chicken_mcnuggets_6_pc", 			["label"] = "Mcdonald's Chicken Mcnuggets 6 Pc", 			["weight"] = 2500, 		["type"] = "item", 		["image"] = "mcdonald's_chicken_mcnuggets_6_pc.png", 	["unique"] = false, 	["useable"] = true, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "Sates Hunger"},
	["mcdonald's_veggie_burger"] 	 = {["name"] = "mcdonald's_veggie_burger", 		["label"] = "Mcdonald's Veggie Burger", 			["weight"] = 125, 		["type"] = "item", 			["image"] = "mcdonald's_veggie_burger.png", 			["unique"] = false, 	["useable"] = true, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "Sates Hunger"},
	["mcdonald's_fries"] 			 = {["name"] = "mcdonald's_fries", 			 	["label"] = "Mcdonald's Fries", 				["weight"] = 125, 		["type"] = "item", 			["image"] = "mcdonald's_fries.png", 				["unique"] = false, 	["useable"] = true, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "Sates Hunger"},
	
	-- DRINKS

	["mcdonald's_coke_zero"] 		 = {["name"] = "mcdonald's_coke_zero", 			["label"] = "Mcdonald's Coke Zero", 				["weight"] = 125, 		["type"] = "item", 		["image"] = "mcdonald's_coke_zero.png", 		["unique"] = false, 	["useable"] = true, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "An Ice Cold Drink"},
	["mcdonald's_chocolate_milk"] 	 = {["name"] = "mcdonald's_chocolate_milk", 	["label"] = "Mcdonald's Chocolate Milk", 				["weight"] = 125, 		["type"] = "item", 		["image"] = "mcdonald's_chocolate_milk.png", 		["unique"] = false, 	["useable"] = true, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "Hand Scooped For You"},

	--INGREDIENTS

	["m_bun"] 				 	 	 = {["name"] = "m_bun", 			 	  	    ["label"] = "Bun", 						["weight"] = 125, 		["type"] = "item", 	    ["image"] = "m_bun.png", 		    		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "An Ingredient"},
	["m_patty"] 				     = {["name"] = "m_patty", 			 	  	    ["label"] = "Cooked Patty", 			["weight"] = 125, 		["type"] = "item", 		["image"] = "m_patty.png", 		    	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "An Ingredient"},
	["m_lettuce"] 				     = {["name"] = "m_lettuce", 			 	    ["label"] = "Lettuce", 				["weight"] = 125, 		["type"] = "item", 			["image"] = "m_lettuce.png", 	    		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "An Ingredient"},
	["m_tomato"] 				 	 = {["name"] = "m_tomato", 			 			["label"] = "Tomato", 				["weight"] = 125, 		["type"] = "item", 			["image"] = "m_tomato.png", 	    		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "An Ingredient"},
	["m_patty_raw"] 				 = {["name"] = "m_patty_raw", 			 		["label"] = "Raw Patty", 				["weight"] = 125, 		["type"] = "item", 		["image"] = "m_patty_raw.png", 	        ["unique"] = false, 	["useable"] = false, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "An Ingredient"},
	["m_potato"] 				     = {["name"] = "m_potato", 			 	        ["label"] = "Bag Of Potatoes", 		["weight"] = 1500, 		["type"] = "item", 			["image"] = "m_potato.png", 	    		["unique"] = false, 	["useable"] = false, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "An Ingredient"},
	["m_ingredients_icecream"] 		 = {["name"] = "m_ingredients_icecream", 		["label"] = "Milkshake Formula", 		["weight"] = 125, 		["type"] = "item", 	    ["image"] = "m_ingredients_icecream.png", ["unique"] = false, 	["useable"] = false, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "An Ingredient"},
	["m_ingredients_hfcs"] 		 	 = {["name"] = "m_ingredients_hfcs", 			["label"] = "Soda Syrup", 		["weight"] = 125, 		["type"] = "item", 				["image"] = "m_ingredients_hfcs.png", 	["unique"] = false, 	["useable"] = false, 	["shouldClose"] = true,    ["combinable"] = nil,   ["description"] = "An Ingredient"},
}

```
## Add this to your @qb-core/shared/jobs.lua 
```
["mcdonalds"] = {
    label = "McDonald's",
    defaultDuty = true,
    grades = {
        ['0'] = {
            name = "Trainee",
            payment = 50
        },
        ['1'] = {
            name = "Employee",
            payment = 75
        },
        ['2'] = {
            name = "Burger Flipper",
            payment = 100
        },
        ['3'] = {
            name = "Manager",
            payment = 125
        },
        ['4'] = {
            name = "Owner",
            isboss = true,
            payment = 150
        },
    },
},	
```

## Add these 3 to your dpemotes.
```
["bsdrink"] = {"amb@world_human_drinking@coffee@male@idle_a", "idle_c", "BS Drink", AnimationOptions =
   {
       Prop = 'prop_food_bs_juice02',
       PropBone = 28422,
       PropPlacement = {0.02, 0.0, -0.10, 0.0, 0.0, -0.50},
       EmoteLoop = true,
       EmoteMoving = true,
   }},

["fries"] = {"mp_player_inteat@burger", "mp_player_int_eat_burger", "Fries", AnimationOptions =
    {
       Prop = 'prop_food_bs_chips',
       PropBone = 60309,
       PropPlacement = { -0.0100, 0.0200, -0.0100, -175.1935, 97.6975, 13.9598 },
       EmoteMoving = true,
   }},

["fbbq"] = {"amb@prop_human_bbq@male@idle_a", "idle_b", "fbbq", AnimationOptions =
   {
       Prop = "prop_fish_slice_01",
       PropBone = 28422,
       PropPlacement = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
       --
       EmoteLoop = true,
       EmoteMoving = false,
   }},

```

## Add the 2 .ogg files in [sounds] to interact-sound/client/html/sounds


--- Old Bill 

RegisterNetEvent("bg-burgershot:bill", function()
    local bill = exports['qb-input']:ShowInput({
        header = "Cash Register",
		submitText = "Charge",
        inputs = {
            {
                text = "Server Id",
				name = "citizenid", 
                type = "text", 
                isRequired = true --
            },
            {
                text = "Bill Price",
                name = "billprice", 
                type = "number",
                isRequired = false
            }
			
        }
    })
    if bill ~= nil then
        if bill.citizenid == nil or bill.billprice == nil then 
            return 
        end
        TriggerServerEvent("bg-burgershot:server:billPlayer", bill.citizenid, bill.billprice)
    end
end)
