[scripting] Is there a function that counts gold coins, ALL of them
Hello guys,
I was busy making my own HUD and i a stumbled on the problem of counting gold.
At start it all works good but then the gold backpack is full and it will open another and the count gold will drop back to 0.
So i was thinking is there an option/function that counts all gold coins in your backpack not just a backpack in your backpack.
Function i use now is
Self.ItemCount(3031)
I know i could do some if statement like if gold in backpack is 1900 then store gold but somehow i am not getting that properly to work. :(
cause it will not count it or it will store it several times if it's exactly 1900.