InteractedWithEvent for Button not triggering as expected

OnBegin() : void =
# You can output to the log like this to determine what your script is up to
Logger.Print(“ATV Script Started!”)
TimerUpgradeButton.InteractedWithEvent.Subscribe(OnButtonInteractedWith)
# When the player spawns, the function “HandleAgentSpawned” is called.
PlayerSpawnDevice.SpawnedEvent.Subscribe(HandleAgentSpawned)
# Same for the Timer. We subscribe to when it expires
TimerDevice.FailureEvent.Subscribe(HandleTimerExpired)
DirtbikeSpawnDevice.AgentEntersVehicleEvent.Subscribe(OnAgentEnter)

OnButtonInteractedWith(InPlayer:agent) : void =
set EngineTimeLimit = EngineTimeLimit + 5.0
HUDMessageBattery.SetText(EngineUpgradeMessage(EngineTimeLimit))
HUDMessageBattery.Show(InPlayer)

In a game session, the code for interacting with the button works as expected.
However, when I set the button’s event to enable on selecting a Pop-Up Dialog option, it does not trigger.

What could be going on here?

Hello zobbyZeus,

Quick question are you subscribing the onInteractevent to the button?
If not try passing the button to verse see 8. Final Result for more info about subscribing events.