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
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)
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.