Add Resource ========================== .. code-block:: csharp public void AddResource(string id, int amount) This method adds the given amount of the resource identified by ``id`` to the player (use ``resourceData.GetResourceId()`` to get a resource's id). .. code-block:: csharp [Inject] PlayersService players; // this example code can be run from any script players.LocalPlayer.AddResource(moneyResourceId, 500); // adds 500 of the given resource to the local player