[Library] Timers4TFM |
King_seniru « Censeur » 1572069360000
| 4 | ||
This library is still in beta phase. Use at your own risk! What is this? This is a library which provides easy and advanced timers for module developers. This project is inspired by mk's timer library, so make sure to support that also ❤️ Background Since normal players - who aren't module members are not allowed to use tfm module apis timers (system.newTimer and system.removeTimer) I decided to create a brand new and an advanced timer system for all! There are many capabilities for these timers
This project is hosted on Github! Contributions are welcome How to use? In order to use this library you need to insert this libraries code in top of your code. Use the full code (Recommended for studying) | Use the minified version (Recommended for production use) NOTICE: Copy and paste one of the above script in the top of your file to use this Examples Creating a new timer Code Lua 1 2 3 4 5 6 7 8 9 --insert the library code here Documentation Creating timers with callbacks Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 --a function to greet a user Documentation Looping timers Code Lua 1 2 Timer("looping", function() print("prints") end, 3000, true) Documentation
Do you want to contribute this project? Great! There are many way that you can involve in this work
Read more on Contribution section You can also post a comment below or DM me to tell how you like this. Dernière modification le 1574309640000 |
0 | ||
DELETED Dernière modification le 1572178500000 |
0 | ||
New Release! (v1.2) Created a release notifier bot Hi! I'm Mouseclick. I'll be notify whenever there are new releases in this project for your convenience. This bot uses Bolodefchoco's Fromage API to do all these things. Thanks's Bolo a lot! NOTE: This is not a production release |