You can buy Hamburger, Sandwich, Water Bottle and Coke Can in this shop.
to add a food or drink you must do :
Create a item like a coffee with value and type in table items in your database
if you want create a coffee add this in client .lua
function Coffee()
TriggerServerEvent("Coffee_Server")
Menu.hidden = false
end
RegisterNetEvent("Coffee")
AddEventHandler("Coffee", function()
TriggerEvent("player:receiveItem", ID OF ITEM, 1)
Menu.hidden = false
end)
and add a new button
Menu.addButton("Coffee (PRICE$)", "Coffee", nil)
and you add this in server.lua
RegisterServerEvent("Coffee_Server")
AddEventHandler("Coffee_Server", function()
TriggerEvent("es:getPlayerFromId", source, function(target)
if (tonumber(target.money) >= PRICE) then
TriggerClientEvent("Coffee", source)
target:removeMoney(PRICE)
TriggerClientEvent("es_freeroam:notify", source, "CHAR_PROPERTY_BAR_MIRROR_PARK", 1, "Store", false, "Coffee ~g~+1 !\n")
else
TriggerClientEvent("es_freeroam:notify", source, "CHAR_PROPERTY_BAR_MIRROR_PARK", 1, "Store", false, "~r~You don't have enought money !\n")
end
end)
end)
Then go use it…? What purpose does your post serve, other than being a kid who shows off his first style edit, gratz, now learn LUA, like them and actually code it.
Still, nobody here actually cares, and your post serves no purpose, other than making yourself looking good. But guess what, exactly that backfired on you, and now what? You expect us to all go down on knee and pray to you, because you resized a menu, no thanks.
If you have further scripts you would like to show off, then go to an appropiate place and do it > The container.