HEX
JaksamHuds

Installation

Here you will get the full Installation guide to setup our huds with Jaksams creators.

Notify

To install the our Notifys for Jaksams, follow these steps:

Create a folder

Create a folder named hex in your Jaksam resource folder at _modules/notify

Create a file

Create a file named cl_notify.lua inside the hex folder you just created.

Copy code

Copy the Notify code and paste it into the cl_notify.lua file.

local moduleType = 'notify' -- Module category
local moduleName = 'hex' -- THIS module name

-- Don't touch, required to appear in in-game settings
Integrations.modules = Integrations.modules or {}
Integrations.modules[moduleType] = Integrations.modules[moduleType] or {}
Integrations[moduleType] = Integrations[moduleType] or {}
Integrations[moduleType][moduleName] = {}
table.insert(Integrations.modules[moduleType], moduleName)

Integrations[moduleType][moduleName].showNotification = function(message)
    if GetResourceState('hex_1_hud') == 'started' then
        exports['hex_1_hud']:Notify('Jobs Creator', message, 'info', 5000)
    elseif GetResourceState('hex_2_hud') == 'started' then
        exports['hex_2_hud']:Notify('Jobs Creator', message, 'info', 5000)
    elseif GetResourceState('hex_4_hud') == 'started' then
        exports['hex_4_hud']:Notify('Jobs Creator', message, 'info', 5000)
    elseif GetResourceState('hex_final_hud') == 'started' then
        exports['hex_final_hud']:Notify('Jobs Creator', message, 'info', 5000)
    elseif GetResourceState('hex_future_hud') == 'started' then
        exports['hex_future_hud']:Notify('Jobs Creator', message, 'info', 5000)
    elseif GetResourceState('hex_hud') == 'started' then
        exports['hex_hud']:Notify('Jobs Creator', message, 'info', 5000)
    elseif GetResourceState('hex_hud_prem') == 'started' then
        exports['hex_hud_prem']:Notify('Jobs Creator', message, 'info', 5000)
    end
end

Restart Resource

Restart your Jaksam resource to apply the changes.

Open Settings

Open the ingame creator settings go to Modules and change the Notify to Hex.

Progressbar

To install the our Progressbar for Jaksams, follow these steps:

Create a folder

Create a folder named hex in your Jaksam resource folder at _modules/progressbar

Create a file

Create a file named cl_progressbar.lua inside the hex folder you just created.

Copy code

Copy the Progressbar code and paste it into the cl_progressbar.lua file.

local moduleType = 'progressbar' -- Module category
local moduleName = 'hex' -- THIS module name

-- Don't touch, required to appear in in-game settings
Integrations.modules = Integrations.modules or {}
Integrations.modules[moduleType] = Integrations.modules[moduleType] or {}
Integrations[moduleType] = Integrations[moduleType] or {}
Integrations[moduleType][moduleName] = {}
table.insert(Integrations.modules[moduleType], moduleName)

Integrations[moduleType][moduleName].start = function(time, text)
    if GetResourceState('hex_2_hud') == 'started' then
        exports['hex_2_hud']:StartProgressbar(time, text)
    elseif GetResourceState('hex_4_hud') == 'started' then
        exports['hex_4_hud']:StartProgressbar(time, text)
    elseif GetResourceState('hex_final_hud') == 'started' then
        exports['hex_final_hud']:StartProgressbar(time, text)
    elseif GetResourceState('hex_future_hud') == 'started' then
        exports['hex_future_hud']:StartProgressbar(time, text)
    elseif GetResourceState('hex_hud_prem') == 'started' then
        exports['hex_hud_prem']:StartProgressbar(time, text)
    end
end

Integrations[moduleType][moduleName].stop = function()
    if GetResourceState('hex_2_hud') == 'started' then
        exports['hex_2_hud']:StopProgressbar()
    elseif GetResourceState('hex_4_hud') == 'started' then
        exports['hex_4_hud']:StopProgressbar()
    elseif GetResourceState('hex_final_hud') == 'started' then
        exports['hex_final_hud']:StopProgressbar()
    elseif GetResourceState('hex_future_hud') == 'started' then
        exports['hex_future_hud']:StopProgressbar()
    elseif GetResourceState('hex_hud_prem') == 'started' then
        exports['hex_hud_prem']:StopProgressbar()
    end
end

Restart Resource

Restart your Jaksam resource to apply the changes.

Open Settings

Open the ingame creator settings go to Modules and change the Progressbar to Hex.

TextUI

To install the our TextUI for Jaksams, follow these steps:

Create a folder

Create a folder named hex in your Jaksam resource folder at _modules/textui

Create a file

Create a file named cl_textui.lua inside the hex folder you just created.

Copy code

Copy the TextUI code and paste it into the cl_textui.lua file.

local moduleType = 'textui' -- Module category
local moduleName = 'hex' -- THIS module name

-- Don't touch, required to appear in in-game settings
Integrations.modules = Integrations.modules or {}
Integrations.modules[moduleType] = Integrations.modules[moduleType] or {}
Integrations[moduleType] = Integrations[moduleType] or {}
Integrations[moduleType][moduleName] = {}
table.insert(Integrations.modules[moduleType], moduleName)

local function removeColorString(str)
    return str:gsub("~.-~", ""):gsub("[%[%]]", "")
end

Integrations[moduleType][moduleName].show = function(message)
    local cleanMessage = removeColorString(message)

    if GetResourceState('hex_2_hud') == 'started' then
        exports['hex_2_hud']:ShowHelpNotify(cleanMessage, 'E')
    elseif GetResourceState('hex_4_hud') == 'started' then
        exports['hex_4_hud']:ShowHelpNotify(cleanMessage, 'E')
    elseif GetResourceState('hex_final_hud') == 'started' then
        exports['hex_final_hud']:ShowHelpNotify(cleanMessage, 'E')
    elseif GetResourceState('hex_future_hud') == 'started' then
        exports['hex_future_hud']:ShowHelpNotify(cleanMessage, 'E')
    elseif GetResourceState('hex_hud_prem') == 'started' then
        exports['hex_hud_prem']:ShowHelpNotify(cleanMessage, 'E')
    end
end

Integrations[moduleType][moduleName].hide = function()
    if GetResourceState('hex_2_hud') == 'started' then
        exports['hex_2_hud']:HideHelpNotify()
    elseif GetResourceState('hex_4_hud') == 'started' then
        exports['hex_4_hud']:HideHelpNotify()
    elseif GetResourceState('hex_final_hud') == 'started' then
        exports['hex_final_hud']:HideHelpNotify()
    elseif GetResourceState('hex_future_hud') == 'started' then
        exports['hex_future_hud']:HideHelpNotify()
    elseif GetResourceState('hex_hud_prem') == 'started' then
        exports['hex_hud_prem']:HideHelpNotify()
    end
end

Restart Resource

Restart your Jaksam resource to apply the changes.

Open Settings

Open the ingame creator settings go to Modules and change the TextUI to Hex.