mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
refactor(esx_skin/client/modules/menu): bad habbits
This commit is contained in:
@@ -98,7 +98,7 @@ function Menu:Change(data, menu)
|
|||||||
if element.textureof == data.current.name then
|
if element.textureof == data.current.name then
|
||||||
local component = self.components[i]
|
local component = self.components[i]
|
||||||
|
|
||||||
if (ESX.IsFunctionReference(component.max)) then
|
if ESX.IsFunctionReference(component.max) then
|
||||||
self.elements[i].max = component.max(PlayerPedId(), skin)
|
self.elements[i].max = component.max(PlayerPedId(), skin)
|
||||||
end
|
end
|
||||||
self.elements[i].value = 0
|
self.elements[i].value = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user