Hello FiveM-Community, I hope someone can help me with a simple lua script.
I’m using ES (not ESX) for my server and I want to use the ES money hud.
My problem: The hud doesn’t show up. It only shows up, when i set my money as admin or when i buy something in the store. It will stay there for the whole game. I want to have the money hud right after i spawn into the game.
I tryed it with this simple lua script, but it will only show “undefined” instead of the amount of money:
AddEventHandler('es:playerLoaded', function(source)
TriggerEvent('es:getPlayerFromId', source, function(user)
TriggerClientEvent('es:activateMoney', source, user.money)
end)
end)
Can someone help me to get the right lua script? I think it would work when you add and remove one dollar after you spawn. The ES money system needs to be used to display the hud. (I really don’t know why its scripted this way but it is :D)
