Counterstrike-esque lootboxes with resale -- is this allowed?

Is it against TOS to create a game that has lootboxes with random skins, then creating an exchange/marketplace where players can create sell orders using gamepasses, & when another player buys the gamepass in the game the item is transferred?