recipes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
recipes [2020/06/01 15:00] – [Using recipe on the dashboard] emozolyak | recipes [2021/08/05 13:35] – emozolyak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{ :: | ||
======Recipes====== | ======Recipes====== | ||
Line 58: | Line 59: | ||
===== Using recipes in scripts ===== | ===== Using recipes in scripts ===== | ||
- | To apply recipes within scripts, the **ApplyRecipe (recipeId, userId)** function is used. [[working_with_recipes|See here]]. | + | To apply recipes within scripts, the **ApplyRecipe (recipeId, userId)** function is used. [[working_with_recipes|See here]]. |
+ | |||
+ | <code lua> | ||
+ | function main (userId) | ||
+ | local id = GetReg(" | ||
+ | | ||
+ | AddInfoMessage(" | ||
+ | end | ||
+ | </ | ||
+ | |||
+ | {{ recipe_in_scripts.gif |}} |
recipes.txt · Last modified: 2022/01/15 15:41 by 127.0.0.1