From 13e0d0bb985853224a75508566d21a7ed54fd13d Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Sat, 24 May 2025 21:40:03 -0400 Subject: [PATCH] prefrence change in ox helptext --- modules/helptext/ox_lib/client.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/helptext/ox_lib/client.lua b/modules/helptext/ox_lib/client.lua index 4fe01d3..aaa96d6 100644 --- a/modules/helptext/ox_lib/client.lua +++ b/modules/helptext/ox_lib/client.lua @@ -5,12 +5,13 @@ if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (c ---This will show a help text message at the screen position passed ---@param message string ----@param _position string +---@param position string ---@return nil ---@diagnostic disable-next-line: duplicate-set-field -HelpText.ShowHelpText = function(message, _position) - if _position == nil then _position = 'left-center' end - return exports.ox_lib:showTextUI(message, { position = _position }) +HelpText.ShowHelpText = function(message, position) + return exports.ox_lib:showTextUI(message, { + position = position or 'top-center' + }) end ---This will hide the help text message on the screen