Getting item after putting effort

Salaaam

I spent money to buy a game, if I spend a certain amount of time in the game I have a chance of getting an item out of a set of items.

Does obtaining that item considered as gambling? Because I have to pay for the game, and play for a chance to get an item.

Wasalam

May Allah bless you.

Can you give more details of the type of game we are talking about?

Kind regards