✨ Core Logo Hud - Simple information hud with server logo display

logocororodfb

ABOUT

Super simple clean information hud for esx with your server logo display!

DEPENDENCIES

ESX

PREVIEW

DOWNLOAD

core_logohud.rar (83.8 KB)

OTHER RESOURCES
:heart: CORE DISPATCH
:heart: CORE HUD
:heart: CORE EVIDENCE
:heart: CORE CARSHARING
:heart: CORE WEAPON
:heart: CORE MULTIPLE JOBS

10 Likes

no black money ?

1 Like

its free and open source you can add whatever you like

1 Like

Next script Speedometer please

3 Likes

Thanks, ačiū :slight_smile:

2 Likes

Is it set there or are we able to move it?

If anyone adds the code to add black money to the hud please let me know! Thank you!

2 Likes

Would also need the code for Black Money plz!

i need to buy ur core hud for my 0.5vrp server but i need hud for money and dirty money , can you please convert it to 0.5 vrp ?

Hello, with the hud I have borders as in the photo at the bottom and on the right also can help me to remove or correct them

So, in order to get black money something needs to be switched out (or added) I didnt need the online feature so I made that black money instead.

CLIENT SIDE

Citizen.CreateThread(

function()

    while true do

        Citizen.Wait(100)

        if loaded and not IsPauseMenuActive() then

            ESX.TriggerServerCallback(

                "core_logohud:getInfo",

                function(job, money, bank, black_money)

                    SendNUIMessage(

                        {

                            type = "update",

                            online = ("$" .. black_money) or "0",

                            id = GetPlayerServerId(PlayerId()) or 0,

                            money = ("$" .. money) or "0",

                            bank = ("$" .. bank) or "0",

                            job = string.upper(job) or ""

                        }

                    )

                end

            )

        else

            SendNUIMessage(

                {

                    type = "toggle",

                    value = false

                }

            )

        end

    end

end

)

SERVER SIDE

ESX = nil

TriggerEvent(‘esx:getSharedObject’, function(obj) ESX = obj end)

ESX.RegisterServerCallback(‘core_logohud:getInfo’, function(source, cb)

local xPlayer = ESX.GetPlayerFromId(source)

cb(xPlayer.getJob().label,xPlayer.getMoney(),xPlayer.getAccount('bank').money,xPlayer.getAccount('black_money').money, GetNumPlayerIndices()  )

end)

HTML

Change the “Online” label to black money.

Done - enjoy

3 Likes

i have the same issue… but if i put the resolution to 1080px it work fine

thanks to you i added the black money i was just wandering can you help me with job grade i really wanna add job grade with job pls thank you

1 Like

Nice Release

But need to disable logo not change in html not able to disable that

and need to add job rank please

Anyone wanting the Job name and Grade replace the client.lua with this:


RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function(xPlayer)
    ESX.PlayerData = xPlayer
end)

RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(job)
    ESX.PlayerData.job = job
end)


Citizen.CreateThread(
    function()
        while ESX == nil do
            TriggerEvent(
                "esx:getSharedObject",
                function(obj)
                    ESX = obj
                end
            )
            Citizen.Wait(0)
        end

        while ESX.GetPlayerData().job == nil do
            Citizen.Wait(10)
        end

        loaded = false
        Citizen.Wait(100)
        SendNUIMessage(
            {
                type = "toggle",
                value = true
            }
        )
    end
)


Citizen.CreateThread(
    function()
        while true do
            Citizen.Wait(100)

            if loaded and not IsPauseMenuActive() then

                ESX.TriggerServerCallback(
                    "core_logohud:getInfo",
                    function(job, money, bank, black_money)
                        local JobName = ESX.PlayerData.job.label
                        local JobGrade = ESX.PlayerData.job.grade_label
                        SendNUIMessage(
                            {
                                type = "update",
                                online = ("$" .. black_money) or "0",
                                id = GetPlayerServerId(PlayerId()) or 0,
                                money = ("$" .. money) or "0",
                                bank = ("$" .. bank) or "0",
                                job = (JobGrade ..' - ' .. JobName) or ""
                            }
                        )
                    end
                )
            else
                SendNUIMessage(
                    {
                        type = "toggle",
                        value = false
                    }
                )
            end
        end
    end
)

Citizen.CreateThread(function()
    while true do
        Wait(0)
        if IsControlJustPressed(1, 344) then
            if loaded == false then
                loaded = true
            else 
                loaded = false
            end
        end
    end
end)
2 Likes

Also to disabled the logo is easy, just delete it from the css but you’ll have a gap from the screen - it doesnt force everything up to the top

I have disabled it but there is a gap in the screen. Is it possible to move it up?

Uhm - an easy way. No. You need to do everything individually which is a lot of pain tbh. I would just replace the logo with something simple and sleak.

its not toggle
its work on F11 :man_facepalming:

this for what?