From a4d4937e55793c8aa596b1f6e10dc9100bcf415d Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Tue, 26 Mar 2024 01:04:46 +0100 Subject: [PATCH] refactor: (bpt_lumberjack) await callbacks --- .../resources/[bpt_addons]/bpt_lumberjack/server/main.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server-data/resources/[bpt_addons]/bpt_lumberjack/server/main.lua b/server-data/resources/[bpt_addons]/bpt_lumberjack/server/main.lua index ed059fc4d..cd48b0950 100644 --- a/server-data/resources/[bpt_addons]/bpt_lumberjack/server/main.lua +++ b/server-data/resources/[bpt_addons]/bpt_lumberjack/server/main.lua @@ -1,7 +1,6 @@ ESX = exports["es_extended"]:getSharedObject() -RegisterServerEvent("bpt_woodcutter:pickedUpWood") -AddEventHandler("bpt_woodcutter:pickedUpWood", function() +RegisterServerEvent("bpt_woodcutter:pickedUpWood", function() local xPlayer = ESX.GetPlayerFromId(source) local xItem = xPlayer.getInventoryItem("wood")