The tiny (439 bytes) way of using pipes in MTA.
Pipey comes as a resource with an exported function that is getPipey
, which makes a Pipey
instance.
You can drop pipey.lua
into your project as it is 439 bytes in total.
First, create a Pipey
instance by using the following:
local Pipey = loadstring(getPipey())()
Next, use it!
Pipey
:pipe(firstFunction)
:pipe(secondFunction)
:pipe(thirdFunction)
Pipey:process()
You can also take a look at the example.lua file.
Pipey
comes licensed under the MIT License.
If this project was helpful to you, you can buy me a beer if you feel like doing so. 🙂