mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 22:36:03 +01:00
feat: getConfig function
This commit is contained in:
@@ -26,6 +26,13 @@ function NDCore.getPlayersFromCoords(distance, coords)
|
|||||||
return closePlayers
|
return closePlayers
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function NDCore.getConfig(info)
|
||||||
|
if not info then
|
||||||
|
return Config
|
||||||
|
end
|
||||||
|
return Config[info]
|
||||||
|
end
|
||||||
|
|
||||||
function NDCore.revivePlayer(reset, keepDead)
|
function NDCore.revivePlayer(reset, keepDead)
|
||||||
local usingAmbulance = GetResourceState("ND_Ambulance") == "started"
|
local usingAmbulance = GetResourceState("ND_Ambulance") == "started"
|
||||||
if not keepDead then
|
if not keepDead then
|
||||||
|
|||||||
@@ -34,6 +34,13 @@ function NDCore.getPlayerServerInfo(source)
|
|||||||
return PlayersInfo[source]
|
return PlayersInfo[source]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function NDCore.getConfig(info)
|
||||||
|
if not info then
|
||||||
|
return Config
|
||||||
|
end
|
||||||
|
return Config[info]
|
||||||
|
end
|
||||||
|
|
||||||
---@param fileLocation string|tabale
|
---@param fileLocation string|tabale
|
||||||
---@return boolean
|
---@return boolean
|
||||||
function NDCore.loadSQL(fileLocation, resource)
|
function NDCore.loadSQL(fileLocation, resource)
|
||||||
|
|||||||
Reference in New Issue
Block a user