feat: getConfig function

This commit is contained in:
Andyyy7666
2023-12-23 23:47:24 +01:00
parent a60e1b9e32
commit 29006870c3
2 changed files with 14 additions and 0 deletions

View File

@@ -34,6 +34,13 @@ function NDCore.getPlayerServerInfo(source)
return PlayersInfo[source]
end
function NDCore.getConfig(info)
if not info then
return Config
end
return Config[info]
end
---@param fileLocation string|tabale
---@return boolean
function NDCore.loadSQL(fileLocation, resource)