When a player buys a value 1 Camel card (it does not matter if it is added to the Caravan or in front of it) the player gets to take a free Resource card.
A player can take a Resource card from the deck or any card from face up ones (even the Gold card). If the player takes a face up Resource card, replace it with a new card from the deck.