From 9d20d9b7c33419e5bdc5ef05120aa225b136cad2 Mon Sep 17 00:00:00 2001 From: ANTOND <71350868+antond15@users.noreply.github.com> Date: Thu, 20 Jan 2022 19:53:08 +0100 Subject: [PATCH] fix(client): Check if drops are loaded --- client.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.lua b/client.lua index 0cd2a4e66a..69dcd7d523 100644 --- a/client.lua +++ b/client.lua @@ -705,7 +705,7 @@ RegisterNetEvent('ox_inventory:inventoryConfiscated', function(message) end) RegisterNetEvent('ox_inventory:createDrop', function(data, owner, slot) - drops[data[1]] = data[2] + if drops then drops[data[1]] = data[2] end if owner == PlayerData.id and invOpen and #(GetEntityCoords(PlayerData.ped) - data[2]) <= 1 then if currentWeapon?.slot == slot then currentWeapon = Utils.Disarm(currentWeapon) end