small patch for qbx when config not set

This commit is contained in:
MrNewb committed 2025-05-15 11:16:37 -04:00
1 parent d89b087e4d
commit 3652f2b1bd
2 files changed
+10 -2

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
Framework = Framework or {}
return Framework
+7 -2
View File
@@ -27,13 +27,14 @@ end
---@param _ unknown
---@return nil
Framework.ShowHelpText = function(message, _)
return print("Community_bridge:WARN: ShowHelpText is not implemented for this framework, please set the helptext module to hide the help text.")
if _ == nil then _ = 'left-center' end
return exports.ox_lib:showTextUI(message, { position = _position })
end
---This will hide the help text message on the screen
---@return nil
Framework.HideHelpText = function()
return print("Community_bridge:WARN: HideHelpText is not implemented for this framework, please set the helptext module to hide the help text.")
return exports.ox_lib:hideTextUI()
end
Framework.GetPlayerMetaData = function(metadata)
@@ -41,6 +42,10 @@ Framework.GetPlayerMetaData = function(metadata)
return playerData.metadata[metadata]
end
Framework.Notify = function(message, type, time)
return QBox:Notify("Notification", type, time, message)
end
Framework.GetPlayerIdentifier = function()
return Framework.GetPlayerData().citizenid
end