Files
community_bridge/modules/skills/pickle_xp/client.lua
T

21 lines
692 B
Lua
Raw Normal View History

---@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
---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
---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)
local skillData = exports.pickle_xp:GetLevel(skillName)
2025-04-28 09:17:43 -04:00
return skillData or 0
end
return Skills