Dirty money appears 2sec “-0 $” is missing why?
Everything works perfectly for essential in 2.0, accompanied by es_freeroam. Thanks to the author for this release I have been waiting for a long time to distinguish legal and the illegal money. It would be great if in the future you can do a “money laundering system”
How did you get icons for money?
How to put a picture for dirty money?
In the ui.html you can add the picture with normal html syntax.
I used this :
document.getElementById("dirty_cash").innerHTML = "<div><img id='icon' src='dirty_money.png' alt=''/><font style='color: rgb(125, 0, 0); font-weight: 700; margin-right: 6px;'>" + addCommas(item.dirty_money) +"</font></div>";
and don’t forget to add a new style to it so that all the icons are the same size :
#icon {
height: 21px;
width: auto;
margin-right: 10px;
}
if(item.setdirtymoney == true)
$("#dirtycash").html("<div><font style='color: rgb(0, 125, 0); font-weight: 700; margin-right: 6px;'>€</font> " +addCommas(item.dirtymoney) +"</div>");
to
document.getElementById("dirtycash").innerHTML = "<div><img id='icon' src='dirty_money.png' alt=''/><font style='color: rgb(125, 0, 0); font-weight: 700; margin-right: 6px;'>" + addCommas(item.dirtymoney) +"</font></div>";
That’s right?
just replace that with
<img id='icon' src='dirty_money.png' alt=''/>
Thx !! it works
And to put the text (2000 €) in red (255, 0, 0) I have to do how?
replace the hole thing between ()
"<div><font style='color: rgb(0, 125, 0); font-weight: 700; margin-right: 6px;'>€</font> " +addCommas(item.dirtymoney) +"</div>"
by this
"<div><img id='icon' src='dirty_money.png' alt=''/><font style='color: rgb(125, 0, 0); font-weight: 700; margin-right: 6px;'>" + addCommas(item.dirty_money) +"</font></div>"
How to make dirty money either display constantly on the HUD …
What do you mean ? This is displayed all the time on the screen. (except when you hit pause… I like that )
yeees its posible ?..
I guess you use es_freeroam. Then all you have to do is find this code :
-- Pause menu disable money display
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
if IsPauseMenuActive() and not pauseMenu then
pauseMenu = true
TriggerEvent('es:setMoneyDisplay', 0.0)
TriggerEvent('jobcenter:setJobDisplay',0.0)
elseif not IsPauseMenuActive() and pauseMenu then
pauseMenu = false
TriggerEvent('es:setMoneyDisplay', 1.0)
TriggerEvent('jobcenter:setJobDisplay',1.0)
end
end
end)
and change it to what you like. (It is possible that you can remove all that code and just keep the triggerEvent(‘es:setMoneyDisplay’, 1.0)
(also don’t mind the extra code. this is from my server so it can look different than yours.)
or is this file pls ??
this is in cl_roleplay.lua… But again, you probably don’t have that file and since I don’t know what file you are using I cannot give you the perfect answer for your particular case.
That is why I made a tutorial from this because I cannot make custom scripts for each and every one of you…
yes freeraom .
I was looking for thanks
Ok, so you just search for a client side lua file in es_freeroam. Also keep in mind that the code you try to modify as nothing to do with the tutorial…
For those who also need help with something else please make a discussion post. You can tag people in it so I will get a message when you create a new one. This will keep this one clean. Thank you.
I have a problem this makes me errors in the console and removes it but other HUD they tell me they can not connect to my comics. I use essential mode
how do you turn dirty money into clean money?