From 5fe0a660bd73f3862f1c3e83169b248da823f099 Mon Sep 17 00:00:00 2001 From: Mycroft Date: Thu, 24 Mar 2022 19:03:00 +0000 Subject: [PATCH] Tweak: ESX Property - Optimisations --- [esx_addons]/esx_property/client/main.lua | 9 ++------- [esx_addons]/esx_property/config.lua | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/[esx_addons]/esx_property/client/main.lua b/[esx_addons]/esx_property/client/main.lua index 0dbdadb0..66f1df7d 100644 --- a/[esx_addons]/esx_property/client/main.lua +++ b/[esx_addons]/esx_property/client/main.lua @@ -860,17 +860,15 @@ CreateThread(function() end if letSleep then - Wait(500) + Wait(1500) end end end) -- Key controls CreateThread(function() - while true do + while CurrentAction do Wait(0) - - if CurrentAction then ESX.ShowHelpNotification(CurrentActionMsg) if IsControlJustReleased(0, 38) then @@ -890,8 +888,5 @@ CreateThread(function() CurrentAction = nil end - else - Wait(500) - end end end) diff --git a/[esx_addons]/esx_property/config.lua b/[esx_addons]/esx_property/config.lua index 23bd8dc1..e7869012 100644 --- a/[esx_addons]/esx_property/config.lua +++ b/[esx_addons]/esx_property/config.lua @@ -1,6 +1,6 @@ Config = {} -Config.DrawDistance = 100 +Config.DrawDistance = 10.0 Config.MarkerSize = {x = 1.5, y = 1.5, z = 1.0} Config.MarkerColor = {r = 102, g = 102, b = 204} Config.RoomMenuMarkerColor = {r = 102, g = 204, b = 102}