From 64e31adbc96cb374786ca413bcb590661f3f3a49 Mon Sep 17 00:00:00 2001 From: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com> Date: Fri, 7 Mar 2025 14:38:31 +0000 Subject: [PATCH] Fix toolbar buttons not showing on role assign --- exp_gui/module/toolbar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exp_gui/module/toolbar.lua b/exp_gui/module/toolbar.lua index 9ffb4595..a0eaabc1 100644 --- a/exp_gui/module/toolbar.lua +++ b/exp_gui/module/toolbar.lua @@ -494,7 +494,7 @@ function Toolbar._ensure_consistency(player) if type(allowed) == "function" then allowed = allowed(player, element) end - element.visible = allowed and element.visible or false + element.visible = allowed or false list[button.name].visible = element.visible -- Update the toggle state and hide the linked left element if the button is not allowed