refactor(init): call imports and exports via lib

Deprecate import (now just references lib); when calling or indexing
lib for the first time, attempt to load a module else call an export.
This commit is contained in:
Linden
2022-02-28 02:40:25 +00:00
parent 37032fe0dd
commit e83aa653cc
4 changed files with 41 additions and 40 deletions

View File

@@ -23,7 +23,7 @@ game 'gta5'
--[[ Resource Information ]]--
name 'ox_lib'
author 'Linden'
version '1.4.0'
version '1.5.0'
repository 'https://github.com/overextended/ox_lib'
description 'A library of shared functions to utilise in other resources.'
@@ -41,6 +41,11 @@ files {
shared_script 'resource/main.lua'
shared_scripts {
'resource/**/shared.lua',
'resource/**/shared/*.lua'
}
client_scripts {
'resource/**/client.lua',
'resource/**/client/*.lua'