Skip to content

HasPlayerRecipe

Whether the player’s character knows a recipe.

HasPlayerRecipe(pid, recipe)
Parameter Type
pid number the player
recipe string a recipe’s key, name or document

boolean - false for a recipe the character does not know, no such recipe, or a player not connected

if not HasPlayerRecipe(pid, "Saviour Schnapps") then
SendClientMessage(pid, COLOR_RED, "The apothecary teaches that recipe for 200 groschen.")
end

GivePlayerRecipe · GetPlayerRecipes · the Recipes group of the index