refactor(init): export cache and update intervals

BREAKING CHANGE: lib will store cached export functions and no longer uses the : syntax to call functions.

Allow SetInterval to return arguments to the callback function.
This commit is contained in:
Linden
2021-12-27 11:10:05 +11:00
parent 6b3af6f0d9
commit d0c5f722db
4 changed files with 65 additions and 45 deletions

View File

@@ -23,12 +23,13 @@ game 'gta5'
--[[ Resource Information ]]--
name 'pe-lualib'
author 'Linden'
version '1.0.4'
version '1.1.0'
repository 'https://github.com/project-error/pe-lualib'
description 'A library of shared functions to utilise in other resources.'
[[ Manifest ]]--
dependencies {
'/server:5104',
'/onesync',
}
@@ -48,3 +49,5 @@ server_scripts {
'version.lua',
'resource/**/server.lua'
}
provide 'lualib'