1
0
Fork 0
forked from Simnation/Main
Main/resources/[standalone]/ox_lib/resource/interface/client/main.lua
2025-06-07 08:51:21 +02:00

22 lines
615 B
Lua

--[[
https://github.com/overextended/ox_lib
This file is licensed under LGPL-3.0 or higher <https://www.gnu.org/licenses/lgpl-3.0.en.html>
Copyright © 2025 Linden <https://github.com/thelindat>
]]
---@alias IconProp 'fas' | 'far' | 'fal' | 'fat' | 'fad' | 'fab' | 'fak' | 'fass'
local keepInput = IsNuiFocusKeepingInput()
function lib.setNuiFocus(allowInput, disableCursor)
keepInput = IsNuiFocusKeepingInput()
SetNuiFocus(true, not disableCursor)
SetNuiFocusKeepInput(allowInput)
end
function lib.resetNuiFocus()
SetNuiFocus(false, false)
SetNuiFocusKeepInput(keepInput)
end