fix(client/context): reset focus when selecting option (#310)

This commit is contained in:
FjamZoo
2023-04-26 09:47:07 +10:00
committed by GitHub
parent d389bc6010
commit 74876c8b4e
+1
View File
@@ -101,6 +101,7 @@ RegisterNUICallback('clickContext', function(id, cb)
openContextMenu = nil
SendNUIMessage({ action = 'hideContext' })
lib.resetNuiFocus()
if data.onSelect then data.onSelect(data.args) end
if data.event then TriggerEvent(data.event, data.args) end