Commit Graph

10 Commits

Author SHA1 Message Date
Linden
ec1a98b83a feat(keys): implement a DisableControlAction wrapper 2021-12-06 09:54:45 +11:00
Linden
d25cac3be4 Revert "feat(init): add custom packing for metatables"
This reverts commit 1ad137b8c5.

Prefer native solutions, this is too niche.
2021-12-05 04:58:48 +11:00
Linden
4d51879afd refactor(init): metatables and micro-optimise
import now stores all imported modules and uses call and index methods to load modules.

Defining an import as before (local ServerCallbacks = import 'callbacks') works as before, or you can use ServerCallbacks = import.callbacks

You could also use a lazy loading method by never defining ServerCallbacks, i.e. import.callbacks.Register(...) will work without explicitly importing the module previously.
2021-11-28 18:04:09 +11:00
Linden
1ad137b8c5 feat(init): add custom packing for metatables
Adds lib.unpack and lib.pack functions to the global lib table.
2021-11-25 01:00:12 +11:00
Linden
9adbccd2f8 feat(init): implement interval
This is different from the one implemented in Ox ESX.
2021-11-25 00:56:07 +11:00
Linden
78fdee1132 chore: update readme and license 2021-11-16 11:15:59 +11:00
Linden
52a3623e0e feat: add lib table for exports
Anything assigned to the table will be exported; it's just a hacky way to provide support for Lua Language Server.
2021-11-16 11:15:34 +11:00
Linden
9a60f3bd1d chore(callbacks): update annotations 2021-11-11 07:56:15 +11:00
Linden
ab4807fee0 refactor: remove modules system and fix indentation
Setting a "standard" module and resource structure is too limiting, so stick to import only.
2021-11-11 07:52:38 +11:00
Linden
bc5c7ad209 Add files via upload 2021-10-30 15:58:25 +11:00