I have writed english translate in config. Just comment out the hungarian config. Or you mean the translate is bad? If yes then sry and I look at it but i’m just learning english.
Oh! I see the problem! It’s my fault sry! In the last line where you have this:
Config.dcuzenetpenz = " Opened an chest and they found less money in it!"
You need to replace it with that:
Config.dcuzenetpenzkeves = " Opened an chest and they found less money in it!"
Hmmm. I don’t think the problem in the treasure chest system. It’s only call the esx fuction to give the item what you have put it in the config. In your server the /giveitem command works normally?
I don’t know it either how can it gives you random item. But you can see there’s nothing that can cause random item giving in the script.
The giveitem in the server lua and it’s look like this:
xPlayer.addInventoryItem(Config.nyeremenytargy, Config.nyeremenytargyszam)
And the Config.nyeremenytargy and the Config.nyeremenytargyszam in the Config.lua. And I have opened a lot of chests in my server and I don’t have any problem with it. I’m gonna look after it what can cause the problem. If I find any solution for the problem I will write it down here!