Skip to content

Commit

Permalink
fix: [esx_property\config.lua]: correction of lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Oct 16, 2023
1 parent 29850b8 commit e05a1ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
[esx_property\server\main.lua]: correction of lint errors @bitpredator
[esx_property\config.lua]: correction of lint errors @bitpredator
8 changes: 4 additions & 4 deletions server-data/resources/[esx_addons]/esx_property/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}

Expand All @@ -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)
Expand All @@ -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"
Expand Down

0 comments on commit e05a1ec

Please sign in to comment.