diff options
Diffstat (limited to 'tutorials/tut020_nrequire.md')
| -rw-r--r-- | tutorials/tut020_nrequire.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tutorials/tut020_nrequire.md b/tutorials/tut020_nrequire.md index 2881236..ce42df7 100644 --- a/tutorials/tut020_nrequire.md +++ b/tutorials/tut020_nrequire.md @@ -73,7 +73,7 @@ The solution is simply to write more of the file path You don't actually need to save whatever nrequire() returns. If you know the file `sv_invfuncs` adds a method to the player metatable, `player:HasItem(itemname)` which you want to use, you can just call nrequire() without saving the return table. -garrysmod/addons/artery_routelite/data/artery/global/somefile.lua +garrysmod/addons/artery_rougelite/data/artery/global/somefile.lua nrequire("sv_invfuncs.lua") @@ -90,7 +90,7 @@ Much like the main files of artery, the files under `garrysmod/addons/artery_rou ## Using artery modules -Let's do an example. On the left, you will see a lot of modules provided by artery. One of these, under "shared" domain is `log.lua`. Open it in a new tab. +Let's do an example. On the left, you will see a lot of modules provided by artery. One of these, under the "shared" domain is `log.lua`. Open it in a new tab. You will see several methods provided by `log.lua`, to use them, you will first use nrequire() to get access to the functions, then call whatever you like. @@ -105,7 +105,7 @@ Note that we named the file `logthing.lua`, since the file does not begin with ` ## Next steps -From here the tutorials open up a bit. You can continue on, or read more in depth about the subject. Tutorials named tut030, tut040, ect. are in logical order needed to build an addon for Artery, tutorials named tut031, tut041, ect. would be continuations of tut030 and tut040 respectively that go more in depth or expand on the ideas about the content of their parent tutorial. These are not nessessarilly needed to complete the tutorial addon, but are recommended viewing before asking for help from the developer. +From here the tutorials open up a bit. You can continue on, or read more in depth about the subject. Tutorials named tut030, tut040, ect. are in logical order needed to build an addon for Artery, tutorials named tut031, tut041, ect. are continuations of tut030 and tut040 respectively that go more in depth or expand on the ideas about the content of their parent tutorial. These are not needed to complete the tutorial addon, but are recommended viewing before asking for help from the developer. Further reading: @{tut021_detouring.md} Next tutorial: @{tut030_inventories.md} |
