mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 23:46:03 +01:00
fix(client/context): reset focus when selecting option (#310)
This commit is contained in:
@@ -101,6 +101,7 @@ RegisterNUICallback('clickContext', function(id, cb)
|
|||||||
openContextMenu = nil
|
openContextMenu = nil
|
||||||
|
|
||||||
SendNUIMessage({ action = 'hideContext' })
|
SendNUIMessage({ action = 'hideContext' })
|
||||||
|
lib.resetNuiFocus()
|
||||||
|
|
||||||
if data.onSelect then data.onSelect(data.args) end
|
if data.onSelect then data.onSelect(data.args) end
|
||||||
if data.event then TriggerEvent(data.event, data.args) end
|
if data.event then TriggerEvent(data.event, data.args) end
|
||||||
|
|||||||
Reference in New Issue
Block a user