HasPlayerRecipe
Whether the player’s character knows a recipe.
Syntax
Section titled “Syntax”HasPlayerRecipe(pid, recipe)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
recipe |
string | a recipe’s key, name or document |
Returns
Section titled “Returns”boolean - false for a recipe the character does not know, no such recipe, or a player not connected
Example
Section titled “Example”if not HasPlayerRecipe(pid, "Saviour Schnapps") then SendClientMessage(pid, COLOR_RED, "The apothecary teaches that recipe for 200 groschen.")endSee also
Section titled “See also”GivePlayerRecipe · GetPlayerRecipes · the Recipes group of the index
