π»Client Exports
Here u will find some useful client export examples
exports["rl_skills"]:OpenMenu()
You can use this export to open the menu from like your radial menu.
exports["rl_skills"]:GetSkillData(Skillname)
Required values:
These values are examples, adapt them to what you need!
SkillName ("driving")
This will return the skill data for given skill.
// Example Usage
local ProgbarTime = 0
local SkillData = exports["rl_skills"]:GetSkillData("gathering")
if SkillData ~= nil then
for Key, Value in pairs(rlConfig.GatheringLevels) do
if SkillData.Level == Key then
ProgbarTime = Value["Progbar"]
end
end
endThis exports will return a table of values, below you will find the values that will get returned.
Config: make sure if you make a config for a skill, every level has it`s own table.
Last updated