small patch for qbx when config not set
This commit is contained in:
1 parent
d89b087e4d
commit
3652f2b1bd
2 files changed
+10
-2
No files matched your search
@@ -0,0 +1,3 @@
|
|||||||
|
Framework = Framework or {}
|
||||||
|
|
||||||
|
return Framework
|
||||||
@@ -27,13 +27,14 @@ end
|
|||||||
---@param _ unknown
|
---@param _ unknown
|
||||||
---@return nil
|
---@return nil
|
||||||
Framework.ShowHelpText = function(message, _)
|
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
|
end
|
||||||
|
|
||||||
---This will hide the help text message on the screen
|
---This will hide the help text message on the screen
|
||||||
---@return nil
|
---@return nil
|
||||||
Framework.HideHelpText = function()
|
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
|
end
|
||||||
|
|
||||||
Framework.GetPlayerMetaData = function(metadata)
|
Framework.GetPlayerMetaData = function(metadata)
|
||||||
@@ -41,6 +42,10 @@ Framework.GetPlayerMetaData = function(metadata)
|
|||||||
return playerData.metadata[metadata]
|
return playerData.metadata[metadata]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Framework.Notify = function(message, type, time)
|
||||||
|
return QBox:Notify("Notification", type, time, message)
|
||||||
|
end
|
||||||
|
|
||||||
Framework.GetPlayerIdentifier = function()
|
Framework.GetPlayerIdentifier = function()
|
||||||
return Framework.GetPlayerData().citizenid
|
return Framework.GetPlayerData().citizenid
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user