Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- Config.MarkerInteractionKey = 38 -- E by default (If you will change this, also you need to change all of the ~INPUT_CONTEXT~ into the one that u change)
- Config.OrderItem = ''
- Config.Restaurants = {
- ['Drusilla'] = {
- Webhook = '', -- webhook to some logs
- JobName = 'drusilla',
- Storage = vector3(-1199.6661, -896.8015, 13.09742), -- ox inventory stash coords
- BossMenu = vector3(-1178.3867, -895.8124, 13.09742), -- boss menu coords (esx_society)
- Clothing = vector3(-1181.2103, -900.3879, 13.0742), -- clothing coords
- CookingArea = vector3(-1199.1642, -903.7907, 13.0742), -- cooking coords
- OrdersStash = vector3(-1202.6117, -899.5175, 13.9742), -- Place when player orders will come as an item
- StartingMoney = 10000, -- Money that the restaurant will get when created
- OrderStashData = {
- slots = 20,
- weight = 50000 -- 50kg
- },
- StashData = {
- slots = 50,
- weight = 100000 -- 100 kg
- },
- BlipInfo = {
- name = 'Drusilla`s restaurant',
- coords = {x = -1199.9668, y = -901.5309, z = 13.9742},
- sprite = 1,
- size = 0.8,
- color = 2,
- display = 4
- },
- IngredientShop = {
- name = 'Corner Shop 3',
- id = 'drusilla_ingredient_shop',
- items = {
- { name = 'hamburger', price = 10 },
- { name = 'water', price = 10 },
- { name = 'ecola', price = 10 },
- },
- location = vector3(-1197.8801, -887.2239, 13.9742)
- },
- Food = { -- put here any food that restaurant will sell
- ['Hamburger'] = {
- itemname = 'hamburger',
- description = 'Tasty mf',
- ingredients = {
- {name = 'water', amount = 1, label = 'Water'},
- },
- time = 15000,
- price = 20
- },
- ['E-Cola'] = {
- itemname = 'ecola',
- description = 'Tasty mf',
- ingredients = {
- {name = 'water', amount = 1, label = 'Water'},
- },
- time = 10000,
- price = 10
- },
- }
- },
- ['La papa`s'] = {
- Webhook = '', -- webhook to some logs
- JobName = 'lapapas',
- Storage = vector3(-1199.6661, -896.8015, 13.09742), -- ox inventory stash coords
- BossMenu = vector3(-1178.3867, -895.8124, 13.09742), -- boss menu coords (esx_society)
- Clothing = vector3(-1181.2103, -900.3879, 13.0742), -- clothing coords
- CookingArea = vector3(-1199.1642, -903.7907, 13.0742), -- cooking coords
- OrdersStash = vector3(-1202.6117, -899.5175, 13.9742), -- Place when player orders will come as an item
- StartingMoney = 10000, -- Money that the restaurant will get when created
- OrderStashData = {
- slots = 20,
- weight = 50000 -- 50kg
- },
- StashData = {
- slots = 50,
- weight = 100000 -- 100 kg
- },
- BlipInfo = {
- name = 'La papa`s restaurant',
- coords = {x = -1199.9668, y = -901.5309, z = 13.9742},
- sprite = 1,
- size = 0.8,
- color = 2,
- display = 4
- },
- IngredientShop = {
- name = 'Corner Shop 3',
- id = 'lapapas_ingredient_shop',
- items = {
- { name = 'hamburger', price = 10 },
- { name = 'water', price = 10 },
- { name = 'ecola', price = 10 },
- },
- location = vector3(-1197.8801, -887.2239, 13.9742)
- },
- Food = { -- put here any food that restaurant will sell
- ['Hamburger'] = {
- itemname = 'hamburger',
- description = 'Tasty mf',
- ingredients = {
- {name = 'water', amount = 1, label = 'Water'},
- },
- time = 15000,
- price = 20
- },
- ['E-Cola'] = {
- itemname = 'ecola',
- description = 'Tasty mf',
- ingredients = {
- {name = 'water', amount = 1, label = 'Water'},
- },
- time = 10000,
- price = 10
- },
- }
- },
- }
- RegisterNetEvent('dRestaurants:customNotification', function(header, msg, time)
- -- ESX.ShowNotification(msg)
- lib.notify({
- id = 'dRestaurantsNotify',
- title = header,
- description = msg,
- position = 'top',
- style = {
- backgroundColor = '#242424',
- color = '#909296'
- },
- icon = 'burger',
- iconColor = '#2a726f',
- duration = time
- })
- end)
- RegisterNetEvent('dRestaurants:bossMenuOpen', function(job)
- TriggerEvent('esx_society:openBossMenu', job, function(data, menu)
- menu.close()
- CurrentAction = 'menu_boss_actions'
- CurrentActionMsg = 'boss menu'
- CurrentActionData = {}
- end, { wash = false })
- end)
- RegisterNetEvent('dRestaurants:customProgressBar', function(msg, time)
- -- you can set your own progress bar here
- TriggerEvent('rprogress:start', msg, tonumber(time))
- end)
- RegisterNetEvent('dRestaurants:clothingMenuOpen', function()
- -- EXAMPLE FOR FIVEM APPEARANCE if u want to use ur own skin/appearance then just go and search for skin menu event in their documentation
- -- local config = {
- -- ped = true,
- -- headBlend = true,
- -- faceFeatures = true,
- -- headOverlays = true,
- -- components = true,
- -- props = true,
- -- allowExit = true,
- -- tattoos = true
- -- }
- -- exports['fivem-appearance']:startPlayerCustomization(function (appearance)
- -- if (appearance) then
- -- print('Saved')
- -- else
- -- print('Canceled')
- -- end
- -- end, config)
- TriggerEvent('esx_skin:openSaveableMenu')
- end)
- Config.Lang = {
- ['Count'] = ' x ', -- for example "You dont have .. x .. of meat to cook hamburger"
- ['MissingIngredients'] = "You're missing ingredients! List:\n",
- ['Error'] = "Error!",
- ['Success'] = "Success!",
- ['StashName'] = 'Stash ', -- "Stash Drusilla" etc.
- ['OrderStashName'] = 'Order Stash ', -- "Order Stash Drusilla" etc.
- ['MissingShop'] = 'Could not find the shop!',
- ['CookingHelpText'] = 'Press ~INPUT_CONTEXT~ to open cooking menu',
- ['StashHelpText'] = 'Press ~INPUT_CONTEXT~ to access the stash',
- ['BossHelpText'] = 'Press ~INPUT_CONTEXT~ to open boss menu',
- ['ClothingHelpText'] = 'Press ~INPUT_CONTEXT~ to access the clothing menu',
- ['OrderStashHelpText'] = 'Press ~INPUT_CONTEXT~ to access the order stash ',
- ['IngredientShopHelpText'] = 'Press ~INPUT_CONTEXT~ to access the ingredient shop',
- ['OrderingHelpText'] = 'Press ~INPUT_CONTEXT~ to access the ordering menu',
- ['MakingFood'] = 'You are preparing %s ', -- food name
- ['MadeFood'] = 'You have prepared %s ', -- food name
- ['WebhookMadeFood'] = '%s has prepared %s', -- Player name prepared food name
- ['CookingMenuTitle'] = 'Cooking Menu',
- ['SelectFood'] = 'Please select the food you want to order',
- ['OrderFoodInfo'] = 'Enter more info (amount of food ex. "4x fries, 2x chicken")',
- ['InputError'] = 'Please fill every space in the input menu!',
- ['InputCancelled'] = 'You have cancelled order creation',
- ['MissingMoney'] = 'You dont have enough money! You need %s$ more!', -- missing money amount
- ['NewOrderInfo'] = 'You have received a new order from a player with ID [%s]',
- ['SelectRestaurant'] = 'Please select the restaurant you want to order from',
- ['GetCurrentPosition'] = 'Do you want to use your current position?',
- ['NewOrderCustomer'] = 'You have created a new order! Restaurant workers count: %s worker/s are online!\n\n Do not move away from the area, the restaurant worker is coming to your location\n\nIf there is 0 workers, you will get one of each item you ordered',
- ['WaypointSet'] = 'New waypoint has been set! Check your GPS',
- ['WebhookNewOrder'] = 'A new order has came in! Check your order stash! Player name: %s , Player ID: %s',
- ['AdditionalCustomerInfo'] = "\n\nAdditional customer info: \n\n",
- ['ChooseRestaurantTitle'] = 'Choose restaurant',
- ['OrderingTitle'] = 'Order',
- }
- https://discord.gg/6c3Qtz7G
Add Comment
Please, Sign In to add comment