diff --git a/addons/DressUp/helper_functions.lua b/addons/DressUp/helper_functions.lua index 7d8454328..82ee8a3e2 100644 --- a/addons/DressUp/helper_functions.lua +++ b/addons/DressUp/helper_functions.lua @@ -32,7 +32,7 @@ function get_item_id(str,slot) else for k,v in pairs(models[slot]) do - if v['enl'] == str or v['name'] == str then + if (v['enl'] and v['enl']:lower() == str) or (v['name'] and v['name']:lower() == str) then item_result = k end end