From fc67903eee2286cbc75cd0c9832ad841e3709412 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Thu, 16 Nov 2023 23:34:08 +0100 Subject: [PATCH] chore: clean up the code --- .github/CHANGELOG.md | 3 ++- server-data/resources/[bpt_addons]/bpt_farmer/client/main.lua | 1 - server-data/resources/[bpt_addons]/bpt_farmer/server/main.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 1f82a7d8e..1028c7ed7 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -43,4 +43,5 @@ 18. [ox_inventory]: fix: corrected the weight of the items @bitpredator 19. [esx_identity]: chore: update the code version and improve the formatting @bitpredator 20. [esx_addons]: fix: replace bpt_realisticvehicle with esx_RealisticVehicleFailure to fix repair issues @bitpredator -21. [bpt_streetfight]: chore: clean up the code @bitpredator \ No newline at end of file +21. [bpt_streetfight]: chore: clean up the code @bitpredator +22. [bpt_farmer]: chore: clean up the code @bitpredator \ No newline at end of file diff --git a/server-data/resources/[bpt_addons]/bpt_farmer/client/main.lua b/server-data/resources/[bpt_addons]/bpt_farmer/client/main.lua index 6d77de3cb..6f487c894 100644 --- a/server-data/resources/[bpt_addons]/bpt_farmer/client/main.lua +++ b/server-data/resources/[bpt_addons]/bpt_farmer/client/main.lua @@ -10,7 +10,6 @@ local Keys = { ["NENTER"] = 201, ["N4"] = 108, ["N5"] = 60, ["N6"] = 107, ["N+"] = 96, ["N-"] = 97, ["N7"] = 117, ["N8"] = 61, ["N9"] = 118 } -ESX = nil local incollect = false ESX = exports["es_extended"]:getSharedObject() diff --git a/server-data/resources/[bpt_addons]/bpt_farmer/server/main.lua b/server-data/resources/[bpt_addons]/bpt_farmer/server/main.lua index 4ded4fe42..b84776485 100644 --- a/server-data/resources/[bpt_addons]/bpt_farmer/server/main.lua +++ b/server-data/resources/[bpt_addons]/bpt_farmer/server/main.lua @@ -1,5 +1,5 @@ -ESX = nil ESX = exports["es_extended"]:getSharedObject() + -- collection potato RegisterServerEvent('farmer:collectionpotato') AddEventHandler('farmer:collectionpotato', function()