ed
This commit is contained in:
parent
510e3ffcf2
commit
f43cf424cf
305 changed files with 34683 additions and 0 deletions
|
@ -0,0 +1,26 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
HelpText = HelpText or {}
|
||||
|
||||
---This will show a help text message at the screen position passed
|
||||
---@param message string
|
||||
---@param _position string
|
||||
---@return nil
|
||||
HelpText.ShowHelpText = function(message, _position)
|
||||
return Framework.ShowHelpText(message, _position)
|
||||
end
|
||||
|
||||
---This will hide the help text message on the screen
|
||||
---@return nil
|
||||
HelpText.HideHelpText = function()
|
||||
return Framework.HideHelpText()
|
||||
end
|
||||
|
||||
RegisterNetEvent('community_bridge:Client:ShowHelpText', function(message, position)
|
||||
HelpText.ShowHelpText(message, position)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('community_bridge:Client:HideHelpText', function()
|
||||
HelpText.HideHelpText()
|
||||
end)
|
||||
|
||||
return HelpText
|
|
@ -0,0 +1,18 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
HelpText = HelpText or {}
|
||||
|
||||
---This will show a help text message to the specified player at the screen position passed
|
||||
---@param src number
|
||||
---@param message string
|
||||
---@param position string
|
||||
HelpText.ShowHelpText = function(src, message, position)
|
||||
TriggerClientEvent('community_bridge:Client:ShowHelpText', src, message, position)
|
||||
end
|
||||
|
||||
---This will hide the help text message on the screen for the specified player
|
||||
---@param src number
|
||||
HelpText.HideHelpText = function(src)
|
||||
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
|
||||
end
|
||||
|
||||
return HelpText
|
|
@ -0,0 +1,22 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
HelpText = HelpText or {}
|
||||
local resourceName = "cd_drawtextui"
|
||||
local configValue = BridgeSharedConfig.HelpText
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
|
||||
---This will show a help text message at the screen position passed
|
||||
---@param message string
|
||||
---@param _position string
|
||||
---@return nil
|
||||
HelpText.ShowHelpText = function(message, _position)
|
||||
return TriggerEvent('cd_drawtextui:ShowUI', 'show', message)
|
||||
end
|
||||
|
||||
---This will hide the help text message on the screen
|
||||
---@return nil
|
||||
HelpText.HideHelpText = function()
|
||||
return TriggerEvent('cd_drawtextui:HideUI')
|
||||
end
|
||||
|
||||
return HelpText
|
|
@ -0,0 +1,21 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
HelpText = HelpText or {}
|
||||
local resourceName = "jg-textui"
|
||||
local configValue = BridgeSharedConfig.HelpText
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
---This will show a help text message at the screen position passed
|
||||
---@param message string
|
||||
---@param _position string
|
||||
---@return nil
|
||||
HelpText.ShowHelpText = function(message, _position)
|
||||
return exports['jg-textui']:DrawText(message)
|
||||
end
|
||||
|
||||
---This will hide the help text message on the screen
|
||||
---@return nil
|
||||
HelpText.HideHelpText = function()
|
||||
return exports['jg-textui']:HideText()
|
||||
end
|
||||
|
||||
return HelpText
|
|
@ -0,0 +1,21 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
HelpText = HelpText or {}
|
||||
local resourceName = "lab-HintUI"
|
||||
local configValue = BridgeSharedConfig.HelpText
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
---This will show a help text message at the screen position passed
|
||||
---@param message string
|
||||
---@param _position string
|
||||
---@return nil
|
||||
HelpText.ShowHelpText = function(message, _position)
|
||||
return exports['lab-HintUI']:Show(message, "Hint Text")
|
||||
end
|
||||
|
||||
---This will hide the help text message on the screen
|
||||
---@return nil
|
||||
HelpText.HideHelpText = function()
|
||||
return exports['lab-HintUI']:Hide()
|
||||
end
|
||||
|
||||
return HelpText
|
|
@ -0,0 +1,21 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
HelpText = HelpText or {}
|
||||
local resourceName = "lation_ui"
|
||||
local configValue = BridgeSharedConfig.HelpText
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
---This will show a help text message at the screen position passed
|
||||
---@param message string
|
||||
---@param position string
|
||||
---@return nil
|
||||
HelpText.ShowHelpText = function(message, position)
|
||||
return exports.lation_ui:showText({description = tostring(message), position = position or 'right-center'})
|
||||
end
|
||||
|
||||
---This will hide the help text message on the screen
|
||||
---@return nil
|
||||
HelpText.HideHelpText = function()
|
||||
return exports.lation_ui:hideText()
|
||||
end
|
||||
|
||||
return HelpText
|
|
@ -0,0 +1,21 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
HelpText = HelpText or {}
|
||||
local resourceName = "okokTextUI"
|
||||
local configValue = BridgeSharedConfig.HelpText
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
---This will show a help text message at the screen position passed
|
||||
---@param message string
|
||||
---@param _position string
|
||||
---@return nil
|
||||
HelpText.ShowHelpText = function(message, _position)
|
||||
return exports['okokTextUI']:Open(message, 'darkblue', _position, false)
|
||||
end
|
||||
|
||||
---This will hide the help text message on the screen
|
||||
---@return nil
|
||||
HelpText.HideHelpText = function()
|
||||
return exports['okokTextUI']:Close()
|
||||
end
|
||||
|
||||
return HelpText
|
|
@ -0,0 +1,23 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
HelpText = HelpText or {}
|
||||
local resourceName = "ox_lib"
|
||||
local configValue = BridgeSharedConfig.HelpText
|
||||
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||
|
||||
---This will show a help text message at the screen position passed
|
||||
---@param message string
|
||||
---@param position string
|
||||
---@return nil
|
||||
HelpText.ShowHelpText = function(message, position)
|
||||
return exports.ox_lib:showTextUI(message, {
|
||||
position = position or 'right-center'
|
||||
})
|
||||
end
|
||||
|
||||
---This will hide the help text message on the screen
|
||||
---@return nil
|
||||
HelpText.HideHelpText = function()
|
||||
return exports.ox_lib:hideTextUI()
|
||||
end
|
||||
|
||||
return HelpText
|
Loading…
Add table
Add a link
Reference in a new issue