π»Server Exports
Here u will find some useful server export examples
exports["rl_skills"]:GetSkillData(Source, "driving")
Required values:
These values are examples, adapt them to what you need!
Source (PlayerID)
SkillName ("driving")
This will return the skill data for given skill.
// Example Usage
local Source = source
local SkillData = exports["rl_skills"]:GetSkillData(Source, "driving)
if SkillData == nil then
return false, lib.notify(Source, {
title = "Skills",
description = "Your skilldata has not been found, try again",
duration = 2500,
position = "bottom",
type = "error",
style = {
backgroundColor = "#131121",
color = "#ffffff"
},
})
endThis exports will return a table of values, below you will find the values that will get returned.
exports["rl_skills"]:AddXP(Source, SkillName, XPAmount)
Required values:
These values are examples, adapt them to what you need!
Source (PlayerID)
SkillName ("driving")
XPAmount (10)
exports["rl_skills"]:RemoveXP(Source, SkillName, XPAmount)
Required values:
These values are examples, adapt them to what you need!
Source (PlayerID)
SkillName ("driving")
XPAmount (10)
Last updated