From 738a7461ab6143c9cf7de5b8c5eba80ac507df83 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Thu, 16 Nov 2023 23:34:55 +0100 Subject: [PATCH] chore: clean up the code --- .github/CHANGELOG.md | 3 ++- .../resources/[bpt_addons]/bpt_teleport/warehouses.lua | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 1028c7ed7..102a361f4 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -44,4 +44,5 @@ 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 -22. [bpt_farmer]: chore: clean up the code @bitpredator \ No newline at end of file +22. [bpt_farmer]: chore: clean up the code @bitpredator +23. [bpt_teleport] chore: clean up the code @bitpredator \ No newline at end of file diff --git a/server-data/resources/[bpt_addons]/bpt_teleport/warehouses.lua b/server-data/resources/[bpt_addons]/bpt_teleport/warehouses.lua index f42bf8988..8630fa1c3 100644 --- a/server-data/resources/[bpt_addons]/bpt_teleport/warehouses.lua +++ b/server-data/resources/[bpt_addons]/bpt_teleport/warehouses.lua @@ -1,7 +1,4 @@ -ESX = nil -CreateThread(function() - ESX = exports["es_extended"]:getSharedObject() -end) +ESX = exports["es_extended"]:getSharedObject() CreateThread(function() while true do