[Release] MoneyHUD [V1.0]

Hello,
This will be my first release here.

It’s a little ressource for show the money owned on the HUD.
You need Essential.

Screen :

Installation :

  • Add MoneyHUD on your resources folder.
  • Add “- MoneyHUD” without “” on your citmp-server.yml.

You can find the code here : https://github.com/YoannFR/MoneyHUD

1 Like

Hello, Screen it’s possible ?

I have add a screen in my first message ! :wink:

Sorry misread the user:setMoney which calls the client event :wink:

1 Like

No problem, thank you ! :wink:

Doesn’t EssentialMode already have a Money Hud though? :S

2 Likes

@inclusive Yes it does already… the function that is called lies within essentialmode resources… so…

1 Like

5 Likes

I still see no money hud

1 Like

Have you seen the github code ? It is only 5 lines long…
I hope this is a joke because

4 Likes

I’m ashamed to be French … Man is not things that are done

It’s a little release for help the new Dev…

I understand, but there isn’t even a html file… how are you supposed to display something in-game ?
And the code you added just adds the user’s money to the user’s money… find the error :stuck_out_tongue:

Yeah because in the original essential it doesn’t already load the money…

function LoadUser(identifier, source, new)
	local executed_query = MySQL:executeQuery("SELECT * FROM users WHERE identifier = '@name'", {['@name'] = identifier})
	local result = MySQL:getResults(executed_query, {'permission_level', 'money', 'identifier', 'group', 'iscop'}, "identifier")

	local group = groups[result[1].group]
	Users[source] = Player(source, result[1].permission_level, result[1].money, result[1].identifier, result[1].iscop, group)

	TriggerEvent('es:playerLoaded', source, Users[source])

	if(true)then
		TriggerClientEvent('es:setPlayerDecorator', source, 'rank', Users[source]:getPermissions())
	end

	if(true)then
		TriggerEvent('es:newPlayerLoaded', source, Users[source])
	end
end

I still don’t get the point of this extra mod…

1 Like

Yes it load the money … but it doesnt set the money for the user

in the script you show it load the data of the user from the databse and define what “user.” is but thats it …

AddEventHandler('es:playerLoaded', function(source) -- detect if the user loaded 
 TriggerEvent('es:getPlayerFromId', source, function(user) -- get identifier of the user
   user:setMoney((user.money)) -- set the money of the user using the script you just showed me
   end)
end)

You do know that this function actually sets the amount of money of that user ?

bruh… im done with you lmao …

Seriously someone posted something like this?
I’d expect someone atleast not to use essentialsmode to create something like this… -_-

Hello I installed “Money HUD” as you explained it to me when I come into games I have nothing you have any ideas to solve the worry?

Your script is already in es_freeroam