mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor: rename imports
BREAKING! Since the folder name determines the import name (i.e. lib.callbacks), use better names and lowerCamelCase.
This commit is contained in:
7
init.lua
7
init.lua
@@ -2,19 +2,18 @@ if not _VERSION:find('5.4') then
|
||||
error('^1Lua 5.4 must be enabled in the resource manifest!^0', 3)
|
||||
end
|
||||
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
-- Module
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
-- env
|
||||
local lualib = 'ox_lib'
|
||||
local file = IsDuplicityVersion() and 'server' or 'client'
|
||||
|
||||
-- micro-optimise
|
||||
local rawget = rawget
|
||||
local rawset = rawset
|
||||
local LoadResourceFile = LoadResourceFile
|
||||
local file = IsDuplicityVersion() and 'server' or 'client'
|
||||
local rawset = rawset
|
||||
local rawget = rawget
|
||||
|
||||
local function loadModule(self, module)
|
||||
local dir = ('imports/%s'):format(module)
|
||||
|
||||
Reference in New Issue
Block a user