How to set sprite of a player?

I saw there are two available actions in Websocket API, mapSetSprites and playerSetsSprite. But it required a sprite number as input.

How can I associated the number with an sprite image?
Is it possible to use custom sprite image?

1 Like