2025-06-07 22:50:13 -04:00
|
|
|
---@diagnostic disable: duplicate-set-field
|
2025-04-28 09:17:43 -04:00
|
|
|
Skills = Skills or {}
|
|
|
|
|
local resourceName = "pickle_xp"
|
|
|
|
|
local configValue = BridgeSharedConfig.Skills
|
|
|
|
|
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
|
|
|
|
2025-06-07 22:50:13 -04:00
|
|
|
---This will get the name of the Skills system being used.
|
|
|
|
|
---@return string
|
2025-04-28 09:17:43 -04:00
|
|
|
Skills.GetResourceName = function()
|
|
|
|
|
return resourceName
|
|
|
|
|
end
|
|
|
|
|
|
2025-06-07 22:50:13 -04:00
|
|
|
---This will return the skill level of the passed skill name.
|
|
|
|
|
---@param skillName string
|
|
|
|
|
---@return number
|
2025-04-28 09:17:43 -04:00
|
|
|
Skills.GetSkillLevel = function(skillName)
|
2025-06-07 22:50:13 -04:00
|
|
|
local skillData = exports.pickle_xp:GetLevel(skillName)
|
2025-04-28 09:17:43 -04:00
|
|
|
return skillData or 0
|
2025-05-10 00:01:56 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
return Skills
|