On player creation I want to grant items to a player using a rule. I'm using Azure CloudScripts and Economy V2.
As far as I understand, in rules I should use PlayerPlayStreamFunctionExecutionContext as context but where do I get the correct EntityId and EntityType for the ExecuteInventoryOperationsRequest.
I tried some things, including the Entity data in PlayStreamEventEnvelope but nothing seems to work.
EDIT: Just to clarify, the problem isn't getting the EntityId or EntityType out of PlayerPlayStreamFunctionExecutionContext but that it doesn't work when providing these values to the ExecuteInventoryOperationsRequest.
The values in PlayerPlayStreamFunctionExecutionContext look something like this.
Id: 6FF26F3FF7EC327B Type: player
I checked the Available Built-in Entity Types and "player" isn't even a real thing according to the page. Maybe that's the issue.