mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-24 11:58:35 +00:00
refactor(imports): assign modules directly to lib namespace
Mostly a change for improved intellisense with sumneko lua. Includes some type fixes and deprecation notices.
This commit is contained in:
1 parent
107d812dc3
commit
26538b8148
19 files changed
+98
-61
No files matched your search
@@ -5,7 +5,7 @@ if key ~= '' then
|
||||
local resourceName = GetCurrentResourceName()
|
||||
key = key:gsub("[\'\"]", '')
|
||||
|
||||
return function(source, event, message, ...)
|
||||
function lib.logger(source, event, message, ...)
|
||||
local data = json.encode({
|
||||
hostname = resourceName,
|
||||
service = event,
|
||||
@@ -27,4 +27,4 @@ if key ~= '' then
|
||||
end
|
||||
end
|
||||
|
||||
return function() end
|
||||
return lib.logger or function() end
|
||||
Reference in new issue
Block a user