📄Configs
Config = {}
Config.Framework = {
type = "QBCore", -- "QBCore" or "ESX"
core_name = "qb-core", -- If you use esx ignore this line
target = "ox_target", -- qb-target or "ox_target"
notify = "ox_lib", -- "qbcore", "ox_lib", "okok", "lation_ui" (open code on c_utils.lua)
emotes = "rpemotes", -- "rpemotes", "scully_emotemenu" (open code on c_utils.lua)
fuel = "LegacyFuel", -- "ps-fuel", "okokFuel", "ox_fuel", "ti_fuel", "qs-fuel", "cdn-fuel" (open code on c_utils.lua)
inventory = "ox", -- "oldqb", "newqb", "ox"
menu = "ox_lib", -- "ox_lib", "lation_ui"
progress = "ox_lib", -- "ox_lib", "lation_ui" (open code on c_utils.lua)
billing = "qb", -- "qb", "RxBilling", "okokBilling", "esx" (open code on c_utils.lua)
job_name = "police", -- Job name to interact
mlo = "gnstudio", -- "gnstudio", "gabz"
}
Config.IngredientsShop = {
location = vec3(393.76, -804.62, 29.29),
ped_options = {
enable = true, -- Enable spawning a ped?
location = vector4(393.76, -804.62, 29.29, 273.21),
ped_model = "s_m_m_ammucountry",
},
blip_options = {
enable = true, -- Enable blip on map?
sprite = 52,
color = 2,
scale = 0.8,
label = "Ingredients Shop"
},
ingredientsShop = {
{ name = "bacon", price = 5, amount = 50, info = {}, type = "item", slot = 1 },
{ name = "burger", price = 10, amount = 50, info = {}, type = "item", slot = 2 },
{ name = "burger_bread", price = 10, amount = 50, info = {}, type = "item", slot = 3 },
{ name = "cheese", price = 10, amount = 50, info = {}, type = "item", slot = 4 },
{ name = "lettuce", price = 10, amount = 50, info = {}, type = "item", slot = 5 },
{ name = "meatchicken", price = 10, amount = 50, info = {}, type = "item", slot = 6 },
{ name = "onion", price = 10, amount = 50, info = {}, type = "item", slot = 7 },
{ name = "potato", price = 10, amount = 50, info = {}, type = "item", slot = 8 },
{ name = "tomato", price = 10, amount = 50, info = {}, type = "item", slot = 9 },
{ name = "salt", price = 10, amount = 50, info = {}, type = "item", slot = 10 },
}
}
Config.Delivery = {
waiting_time = math.random(5000,7500), -- Time to wait until receive a order
items = {
{ name = "bacon_burger", minAmount = 1, maxAmount = 3, rewardCash = {min = 50, max = 200} },
{ name = "bacon_cheeseburger", minAmount = 1, maxAmount = 2, rewardCash = {min = 50, max = 200} },
{ name = "burger_bleeder", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "burger_chickenmelt", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "burger_heartstopper", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "burger_torpedo", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "cheese_burger", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "horn_burger", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "loaded_burger", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "sirloin_burger", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "steak_burger", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "triple_burger", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "burger_softdrink", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "burger_milkshake", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "burger_coffee", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
{ name = "burger_fries", minAmount = 1, maxAmount = 1, rewardCash = {min = 50, max = 200} },
},
locations = {
vector4(-1177.33, -813.87, 14.47, 172.39),
vector4(-827.0, -691.51, 28.06, 90.28),
vector4(-715.81, -603.0, 31.56, 100.37),
vector4(-697.31, -676.07, 30.74, 1.57),
vector4(-512.71, -734.16, 32.71, 131.76),
vector4(-521.08, -855.52, 30.26, 323.85),
vector4(-680.49, -945.53, 20.93, 182.08)
},
ped_models = {
"s_m_m_autoshop_01",
"s_m_m_ammucountry",
"s_m_m_fiboffice_01",
"s_m_m_highsec_01",
"s_m_m_migrant_01",
"s_m_m_security_01",
"s_m_y_airworker",
"s_m_y_ammucity_01",
"s_m_y_factory_01",
"s_m_y_garbage"
}
}Config.TargetLocations = {
gnstudio = { -- https://fivem.gn.studio/package/4841796
blip = {
enable = true,
loc = vector3(-1196.22, -899.8, 13.97),
sprite = 106,
color = 1,
scale = 0.8,
name = "Burgershot"
},
targets = {
garage = {
enable = true,
loc = vector3(-1177.22, -892.01, 13.78),
spawn_loc = vector4(-1172.56, -889.4, 13.93, 32.73),
ped_options = {
enable = true,
location = vector4(-1177.22, -892.01, 13.78, 334.17),
ped_model = "s_m_m_autoshop_02",
},
vehicle = "faggio2"
},
cooking = {
loc = vector3(-1196.22, -899.8, 13.97),
label = "Cook Burger",
icon = "fas fa-burger",
radius = 1.0,
jobLocked = true,
onSelect = function ()
OpenBurgershotCookingMenu()
end
},
billing = {
loc = vector3(-1195.43, -893.5, 13.97),
label = "Billing Player",
icon = "fas fa-money-bill",
radius = 1.0,
jobLocked = true,
onSelect = function ()
OpenBillingMenu()
end
},
drinks = {
loc = vector3(-1196.29, -894.56, 13.97),
label = "Drinks",
icon = "fas fa-cocktail",
radius = 1.0,
jobLocked = true,
shopItems = {
{ name = "burger_milkshake", price = 5, amount = 50, info = {}, type = "item", slot = 1 },
{ name = "burger_softdrink", price = 10, amount = 50, info = {}, type = "item", slot = 2 },
{ name = "burger_coffee", price = 10, amount = 50, info = {}, type = "item", slot = 3 },
},
onSelect = function ()
OpenShop("Burgershot_Drinks", Config.TargetLocations.drinks.shopItems)
end
},
stash = {
loc = vector3(-1200.73, -901.4, 13.97),
label = "Warehouse",
icon = "fas fa-box",
radius = 1.0,
jobLocked = true,
onSelect = function ()
local data = {
stashName = "Burgershot_Warehouse",
stashWeight = 50000,
stashSlots = 20,
}
OpenStash(data)
end
},
grill_meat = {
loc = vector3(-1197.81, -895.6, 13.97),
label = "Grill Meat",
icon = "fa-solid fa-fire",
radius = 1.0,
jobLocked = true,
onSelect = function ()
GrillMeat()
end
},
grill_potato = {
loc = vector3(-1200.55, -897.39, 13.97),
label = "Grill Potato",
icon = "fa-solid fa-fire",
radius = 1.0,
jobLocked = true,
onSelect = function ()
GrillPotato()
end
},
deliveries = {
loc = vector3(-1196.69, -901.45, 13.97),
label = "Order Delivery",
icon = "fas fa-box",
radius = 1.0,
jobLocked = true,
onSelect = function ()
OpenDeliveryMenu()
end
},
duty = {
loc = vector3(-1181.65, -899.88, 13.97),
label = "Duty",
icon = "fas fa-ring",
radius = 1.0,
jobLocked = true,
onSelect = function ()
Duty() -- ( Open code on config_functions )
end
},
bossmenu = {
loc = vector3(-1178.38, -895.82, 13.97),
label = "Boss Menu",
icon = "fas fa-hands",
radius = 1.0,
jobLocked = true,
onSelect = function ()
OpenBossMenu() -- ( Open code on config_functions )
end
}
}
},
gabz = { -- https://fivem.gabzv.com/package/5665525
blip = {
enable = true,
loc = vector3(-1196.22, -899.8, 13.97),
sprite = 106,
color = 1,
scale = 0.8,
name = "Burgershot"
},
targets = {
garage = {
enable = true,
loc = vec3(-1174.93, -895.81, 13.86),
spawn_loc = vec4(-1172.56, -889.4, 13.93, 32.73),
ped_options = {
enable = true,
location = vec4(-1174.93, -895.81, 13.86, 324.06),
ped_model = "s_m_m_autoshop_02",
},
vehicle = "faggio2"
},
cooking = {
loc = vec3(-1185.59, -899.05, 13.8),
label = "Cook Burger",
icon = "fas fa-burger",
radius = 1.0,
jobLocked = true,
onSelect = function ()
OpenBurgershotCookingMenu()
end
},
billing = {
loc = vec3(-1190.19, -896.07, 13.8),
label = "Billing Player",
icon = "fas fa-money-bill",
radius = 1.0,
jobLocked = true,
onSelect = function ()
OpenBillingMenu()
end
},
drinks = {
loc = vec3(-1190.93, -897.34, 13.8),
label = "Drinks",
icon = "fas fa-cocktail",
radius = 1.0,
jobLocked = true,
shopItems = {
{ name = "burger_milkshake", price = 5, amount = 50, info = {}, type = "item", slot = 1 },
{ name = "burger_softdrink", price = 10, amount = 50, info = {}, type = "item", slot = 2 },
{ name = "burger_coffee", price = 10, amount = 50, info = {}, type = "item", slot = 3 },
},
onSelect = function ()
OpenShop("Burgershot_Drinks", Config.TargetLocations.drinks.shopItems)
end
},
stash = {
loc = vec3(-1196.28, -900.24, 13.8),
label = "Warehouse",
icon = "fas fa-box",
radius = 1.0,
jobLocked = true,
onSelect = function ()
local data = {
stashName = "Burgershot_Warehouse",
stashWeight = 50000,
stashSlots = 20,
}
OpenStash(data)
end
},
grill_meat = {
loc = vec3(-1186.47, -901.14, 13.8),
label = "Grill Meat",
icon = "fa-solid fa-fire",
radius = 1.0,
jobLocked = true,
onSelect = function ()
GrillMeat()
end
},
grill_potato = {
loc = vec3(-1187.92, -899.14, 13.8),
label = "Grill Potato",
icon = "fa-solid fa-fire",
radius = 1.0,
jobLocked = true,
onSelect = function ()
GrillPotato()
end
},
deliveries = {
loc = vec3(-1194.44, -904.48, 13.8),
label = "Order Delivery",
icon = "fas fa-box",
radius = 1.0,
jobLocked = true,
onSelect = function ()
OpenDeliveryMenu()
end
},
duty = {
loc = vec3(-1177.88, -897.31, 13.8),
label = "Duty",
icon = "fas fa-ring",
radius = 1.0,
jobLocked = true,
onSelect = function ()
Duty() -- ( Open code on config_functions )
end
},
bossmenu = {
loc = vec3(-1198.17, -897.59, 13.8),
label = "Boss Menu",
icon = "fas fa-hands",
radius = 1.0,
jobLocked = true,
onSelect = function ()
OpenBossMenu() -- ( Open code on config_functions )
end
}
}
},
}
if GetResourceState(Config.Framework.core_name) == "started" and Config.Framework.type == "QBCore" then
QBCore = exports[Config.Framework.core_name]:GetCoreObject()
elseif GetResourceState("es_extended") == "started" and Config.Framework.type == "ESX" then
ESX = exports.es_extended:getSharedObject()
end
-- Function to send notifications
function Notify(msg, type, time)
if Config.Framework.notify == "qbcore" then
QBCore.Functions.Notify(msg, type, time)
elseif Config.Framework.notify == "okok" then
exports['okokNotify']:Alert('Burgershot', msg, time, type, true)
elseif Config.Framework.notify == "ox_lib" then
lib.notify({ title = 'Burgershot', description = msg, type = type })
elseif Config.Framework.notify == "lation_ui" then
exports.lation_ui:notify({ title = 'Burgershot', message = msg, type = type, })
end
end
-- Function to give keys to the player
function GiveKeys(vehicle)
local plate = GetVehicleNumberPlateText(vehicle)
local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
if GetResourceState("qb-vehiclekeys") == "started" or GetResourceState("qbx_vehiclekeys") == "started" and Config.Garage.VehicleKeys == "qb" then
TriggerEvent('vehiclekeys:client:SetOwner', QBCore.Functions.GetPlate(vehicle))
elseif GetResourceState("qs-vehiclekeys") == "started" and Config.Garage.VehicleKeys == "qs" then
exports['qs-vehiclekeys']:GiveKeys(plate, model)
elseif GetResourceState("Renewed-Vehiclekeys") == "started" and Config.Garage.VehicleKeys == "renewed" then
exports['Renewed-Vehiclekeys']:addKey(plate)
end
end
-- Function to set fuel when vehicle is spawned
function SetFuel(vehicle)
if GetResourceState("LegacyFuel") == "started" and Config.Framework.fuel == "LegacyFuel" then
exports["LegacyFuel"]:SetFuel(vehicle, 100.0)
elseif GetResourceState("okokFuel") == "started" and Config.Framework.fuel == "okokFuel" then
exports['okokGasStation']:SetFuel(vehicle, 100.0)
elseif GetResourceState("cdn-fuel") == "started" and Config.Framework.fuel == "cdn-fuel" then
exports['cdn-fuel']:SetFuel(vehicle, 100.0)
elseif GetResourceState("ox_fuel") == "started" and Config.Framework.fuel == "ox_fuel" then
SetVehicleFuelLevel(vehicle, 100.0)
elseif GetResourceState("ti_fuel") == "started" and Config.Framework.fuel == "ti_fuel" then
exports["ti_fuel"]:setFuel(vehicle, 100.0, "RON91")
elseif GetResourceState("qs-fuel") == "started" and Config.Framework.fuel == "qs-fuel" then
exports['qs-fuelstations']:SetFuel(vehicle, 100.0)
else
print("❌ [m-Burgershot]: No fuel system available or the feature has not started.")
end
end
-- Function to make animations
function MakeAnimation(animation)
if GetResourceState("dpemotes") == "started" and Config.Framework.emotes == "dpemotes" then
TriggerEvent('animations:client:EmoteCommandStart', {animation})
elseif GetResourceState("dpemotes") == "started" and Config.Framework.emotes == "rpemotes" then
exports["rpemotes"]:EmoteCommandStart(animation)
elseif GetResourceState("dpemotes") == "started" and Config.Framework.emotes == "scully_emotemenu" then
exports["scully_emotemenu"]:playEmoteByCommand(animation)
else
print("❌ [m-Burgershot]: No emote system available or the feature has not started.")
end
end
function CancelAnimation()
if GetResourceState("dpemotes") == "started" and Config.Framework.emotes == "dpemotes" then
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
elseif GetResourceState("dpemotes") == "started" and Config.Framework.emotes == "rpemotes" then
exports["rpemotes"]:EmoteCommandStart("c")
elseif GetResourceState("dpemotes") == "started" and Config.Framework.emotes == "scully_emotemenu" then
exports["scully_emotemenu"]:cancelEmote()
else
print("❌ [m-Burgershot]: No emote system available or the feature has not started.")
end
end
function Duty()
if GetResourceState(Config.Framework.core_name) == "started" and Config.Framework.type == "QBCore" then
TriggerServerEvent("QBCore:ToggleDuty")
elseif GetResourceState("es_extended") == "started" and Config.Framework.type == "ESX" then
end
end
function OpenBossMenu()
if GetResourceState("qb-management") == "started" then
TriggerEvent("qb-bossmenu:client:OpenMenu")
elseif GetResourceState("qbx_management") == "started" then
TriggerEvent("qb-bossmenu:client:OpenMenu")
elseif GetResourceState("Ricky-BossMenu") == "started" then
exports['Ricky-BossMenu']:OpenBossMenu(Config.Framework.job_name)
end
end-- This is the configuration of crafting burgers
Config.Burgers = {
["bacon_cheeseburger"] = {
time = 5000,
ingredients = {
{ item = "grilled_burger", amount = 1 },
{ item = "bacon", amount = 1 },
{ item = "cheese", amount = 1 },
{ item = "lettuce", amount = 1 },
{ item = "tomato", amount = 1 },
}
},
["bacon_burger"] = {
time = 5000,
ingredients = {
{ item = "grilled_burger", amount = 1 },
{ item = "bacon", amount = 2 },
{ item = "lettuce", amount = 1 },
}
},
["cheese_burger"] = {
time = 5000,
ingredients = {
{ item = "grilled_burger", amount = 1 },
{ item = "cheese", amount = 2 },
{ item = "lettuce", amount = 1 },
{ item = "tomato", amount = 1 },
}
},
["sirloin_burger"] = {
time = 5000,
ingredients = {
{ item = "grilled_burger", amount = 1 },
{ item = "meatchicken", amount = 1 },
{ item = "onion", amount = 1 },
{ item = "lettuce", amount = 1 },
{ item = "tomato", amount = 1 },
}
},
["burger_bleeder"] = {
time = 5000,
ingredients = {
{ item = "grilled_burger", amount = 1 },
{ item = "cheese", amount = 1 },
{ item = "bacon", amount = 1 },
{ item = "onion", amount = 1 },
{ item = "lettuce", amount = 1 },
{ item = "tomato", amount = 1 },
}
},
["horn_burger"] = {
time = 5000,
ingredients = {
{ item = "grilled_burger", amount = 1 },
{ item = "cheese", amount = 1 },
{ item = "onion", amount = 1 },
{ item = "tomato", amount = 1 },
}
},
["burger_chickenmelt"] = {
time = 5000,
ingredients = {
{ item = "meatchicken", amount = 2 },
{ item = "cheese", amount = 2 },
{ item = "lettuce", amount = 1 },
{ item = "tomato", amount = 1 },
}
},
["loaded_burger"] = {
time = 5000,
ingredients = {
{ item = "grilled_burger", amount = 1 },
{ item = "cheese", amount = 2 },
{ item = "bacon", amount = 2 },
{ item = "onion", amount = 1 },
{ item = "lettuce", amount = 1 },
{ item = "tomato", amount = 1 },
}
},
["steak_burger"] = {
time = 5000,
ingredients = {
{ item = "grilled_burger", amount = 1 },
{ item = "meatchicken", amount = 1 },
{ item = "onion", amount = 1 },
{ item = "lettuce", amount = 1 },
{ item = "tomato", amount = 1 },
{ item = "salt", amount = 1 },
}
},
["triple_burger"] = {
time = 5000,
ingredients = {
{ item = "grilled_burger", amount = 3 },
{ item = "cheese", amount = 3 },
{ item = "bacon", amount = 2 },
{ item = "lettuce", amount = 2 },
{ item = "tomato", amount = 2 },
}
},
["burger_heartstopper"] = {
time = 5000,
ingredients = {
{ item = "grilled_burger", amount = 2 },
{ item = "cheese", amount = 2 },
{ item = "bacon", amount = 3 },
{ item = "onion", amount = 1 },
{ item = "lettuce", amount = 1 },
{ item = "tomato", amount = 1 },
}
},
["burger_torpedo"] = {
time = 5000,
ingredients = {
{ item = "grilled_burger", amount = 2 },
{ item = "cheese", amount = 2 },
{ item = "bacon", amount = 2 },
{ item = "onion", amount = 2 },
{ item = "lettuce", amount = 1 },
{ item = "tomato", amount = 1 },
}
},
["wrap_chicken"] = {
time = 5000,
ingredients = {
{ item = "meatchicken", amount = 2 },
{ item = "lettuce", amount = 2 },
{ item = "bacon", amount = 2 },
}
},
}Last updated