From f72972987b33e2a4a7e22467684af2974bfac4c4 Mon Sep 17 00:00:00 2001 From: Zerio Date: Sat, 25 May 2024 17:18:21 +0200 Subject: [PATCH] fix: `vendingMachineCoords` is undefined --- server/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/main.lua b/server/main.lua index 508476e0..41961ce8 100644 --- a/server/main.lua +++ b/server/main.lua @@ -132,14 +132,14 @@ end -- Events -RegisterNetEvent('qb-inventory:server:openVending', function() +RegisterNetEvent('qb-inventory:server:openVending', function(data) local src = source local Player = QBCore.Functions.GetPlayer(src) if not Player then return end CreateShop({ name = 'vending', label = 'Vending Machine', - coords = vendingMachineCoords, + coords = data.coords, slots = #Config.VendingItems, items = Config.VendingItems })