Hello! This is an edit of the normal qb-methcar, but to use qb-menu and qb-target instead! The Shop solution seen in the preview video isn't a part of the script. So you'll have to add your own Shop for the items!
- qb-core
- qb-target
- qb-inventory or as showcased in the video lj-inventory!
Thanks for showing your personal interest in my work! Please consider supporting โค
๐ > https://discord.gg/Tu94MCDDEa ๐ > https://samuels-development.dev/
-
Place the qb-methcar folder anywhere into your resources folder and ensure/start it in your server/resources.cfg
-
Add these items to your qb-core/shared/items.lua
["acetone"] = {["name"] = "acetone", ["label"] = "Acetone", ["weight"] = 5000, ["type"] = "item", ["image"] = "acetone.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "It is a colourless, highly volatile and flammable liquid with a characteristic pungent odour."},
["methlab"] = {["name"] = "methlab", ["label"] = "Lab", ["weight"] = 15000, ["type"] = "item", ["image"] = "lab.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "A portable Meth Lab"},
["lithium"] = {["name"] = "lithium", ["label"] = "Lithium", ["weight"] = 1000, ["type"] = "item", ["image"] = "lithium.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Lithium, something you can make Meth with!"},#
-
Add the images contained in the file to your html/images of your respective inventory system!
-
Go to your qb-target/init.lua and add this to your Config.GlobalVehicleOptions
Config.GlobalVehicleOptions = {
options = {
{
type = 'client',
event = 'qb-methcar:cook',
icon = 'fas fa-blender',
label = 'Lets cook!',
canInteract = function(entity)
if GetVehicleEngineHealth(entity) <= 0 then return false end
local model = GetEntityModel(entity)
local modelName = GetDisplayNameFromVehicleModel(model)
if modelName == 'JOURNEY' then
return true
end
return false
end
},
},
distance = 2.0,
}
- Done! :)