37 lines
1.2 KiB
Lua
37 lines
1.2 KiB
Lua
|
|
-----------------For support, scripts, and more----------------
|
||
|
|
--------------- https://discord.gg/wasabiscripts -------------
|
||
|
|
---------------------------------------------------------------
|
||
|
|
|
||
|
|
-- Checking for if Complete UI Kit is running
|
||
|
|
-- Get it here: https://wasabiscripts.com/product/7037645
|
||
|
|
local wasabi_uikit, uikitFound = GetResourceState('wasabi_uikit'), false
|
||
|
|
if wasabi_uikit == 'started' or wasabi_uikit == 'starting' then uikitFound = true end
|
||
|
|
|
||
|
|
-- Customize this to customize text UI accross all Wasabi Scripts
|
||
|
|
|
||
|
|
-- Text UI
|
||
|
|
local textUI = false
|
||
|
|
|
||
|
|
-- Show text UI
|
||
|
|
function WSB.showTextUI(msg, options)
|
||
|
|
local QBCore = exports['qb-core']:GetCoreObject()
|
||
|
|
textUI = msg
|
||
|
|
exports["17mov_Hud"]:ShowHelpNotification(msg)
|
||
|
|
end
|
||
|
|
|
||
|
|
-- Hide text UI
|
||
|
|
function WSB.hideTextUI()
|
||
|
|
local QBCore = exports['qb-core']:GetCoreObject()
|
||
|
|
textUI = false
|
||
|
|
exports["17mov_Hud"]:HideHelpNotification()
|
||
|
|
end
|
||
|
|
|
||
|
|
-- Checking for text UI
|
||
|
|
function WSB.isTextUIOpen()
|
||
|
|
return textUI and true or false, textUI or false
|
||
|
|
end
|
||
|
|
|
||
|
|
exports('showTextUI', WSB.showTextUI) -- Export for use in other scripts
|
||
|
|
exports('hideTextUI', WSB.hideTextUI) -- Export for use in other scripts
|
||
|
|
exports('isTextUIOpen', WSB.isTextUIOpen) -- Export for use in other scripts
|