From e05a1ec1b281cd50039737749cb47e3d5c45396f Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Mon, 16 Oct 2023 22:40:33 +0200 Subject: [PATCH] fix: [esx_property\config.lua]: correction of lint errors --- .github/CHANGELOG.md | 3 ++- .../resources/[esx_addons]/esx_property/config.lua | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 979a58820..6880a12ac 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -11,4 +11,5 @@ [esx_property\client\html\copy.html]: remove jquery @bitpredator [esx_property\client\main.lua]: add copy to clipboard to /getoffset @bitpredator [esx_property\locales\en.lua & it.lua]: corrected typos @bitpredator - [esx_property\server\main.lua]: correction of lint errors @bitpredator \ No newline at end of file + [esx_property\server\main.lua]: correction of lint errors @bitpredator + [esx_property\config.lua]: correction of lint errors @bitpredator \ No newline at end of file diff --git a/server-data/resources/[esx_addons]/esx_property/config.lua b/server-data/resources/[esx_addons]/esx_property/config.lua index d0b2f419e..ae74fe449 100644 --- a/server-data/resources/[esx_addons]/esx_property/config.lua +++ b/server-data/resources/[esx_addons]/esx_property/config.lua @@ -125,7 +125,7 @@ Config.AllowedGroups = { } ------------------Interacting With Wardrobe Markers ------------------------------ -Config.WardrobeInteraction = function(PropertyId, Interaction) +Config.WardrobeInteraction = function() ESX.TriggerServerCallback('esx_property:getPlayerDressing', function(dressing) local elements = {{unselectable = true, icon = "fas fa-tshirt", title = "Wardrobe"}} @@ -136,13 +136,13 @@ Config.WardrobeInteraction = function(PropertyId, Interaction) } end - ESX.OpenContext("left", elements, function(menu, element) + ESX.OpenContext("left", elements, function(_, element) TriggerEvent('skinchanger:getSkin', function(skin) ESX.TriggerServerCallback('esx_property:getPlayerOutfit', function(clothes) TriggerEvent('skinchanger:loadClothes', skin, clothes) TriggerEvent('esx_skin:setLastSkin', skin) - TriggerEvent('skinchanger:getSkin', function(skin) + TriggerEvent('skinchanger:getSkin', function() TriggerServerEvent('esx_skin:save', skin) end) end, element.value) @@ -152,7 +152,7 @@ Config.WardrobeInteraction = function(PropertyId, Interaction) end --------------------- Real Estate Settings ---------- -Config.PlayerManagement = { +Config.PlayerManagement = { Enabled = false, -- Enable/Disable Player Management Default: true job = "realestateagent", -- Job Required to Manage Players Default: "realestateagent" joblabel = "Estate Agent", -- Job Label Default: "Estate Agent"