From 528ac40af6aa413f663f296d9b6ae67f101c2892 Mon Sep 17 00:00:00 2001 From: Kasey FItton Date: Sat, 9 Nov 2024 05:13:03 +0000 Subject: [PATCH] fix(esx_skin): set max values correctly --- [core]/esx_skin/client/modules/menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[core]/esx_skin/client/modules/menu.lua b/[core]/esx_skin/client/modules/menu.lua index bafe952f..00020bc4 100644 --- a/[core]/esx_skin/client/modules/menu.lua +++ b/[core]/esx_skin/client/modules/menu.lua @@ -88,7 +88,7 @@ function Menu:Change(data, menu) for i = 1, #self.elements, 1 do local component = self.components[i] - newData.max = type(component.max) == "function" and component.max() or component.max + newData.max = type(component.max) == "function" and component.max(PlayerPedId(), skin) or component.max if self.elements[i].textureof ~= nil and data.current.name == self.elements[i].textureof then newData.value = 0