Exports

CLIENT / SERVER

exports['dh_skillTree']:hasUnlockedSkill(skill ,uid ,source)

Arguments:

  • skill - skill category name

  • uid - skill uid

  • source (SERVER SIDE)

Returns: nil or true

exports['dh_skillTree']:addXp(skill ,xp ,source)

Arguments:

  • skill - skill category name

  • xp - number

  • source (SERVER SIDE)

exports['dh_skillTree']:addPoints(skill ,points ,source)

Arguments:

  • skill - skill category name

  • points - number

  • source (SERVER SIDE)

exports['dh_skillTree']:getSkillEffect(skill ,uid)

Arguments:

  • skill - skill category name

  • uid - skill uid

Returns: effect from config or 0

SERVER ONLY

exports['dh_skillTree']:getPlayerLevel(skill ,source)

Arguments:

  • skill

  • source

Returns: level or 0

exports['dh_skillTree']:getPlayerXp(skill ,source)

Arguments:

  • skill

  • source

Returns: xp or 0

exports['dh_skillTree']:getPlayerPoints(skill ,source)

Arguments:

  • skill

  • source

Returns: points or 0

exports['dh_skillTree']:getPlayerTotalXp(skill ,source)

Arguments:

  • skill

  • source

Returns: totalXp or 0

exports['dh_skillTree']:getPlayerGlobalStats(source)

Arguments:

  • source

Returns: globalStats or { totalXp = 0, totalLevel = 0, usedPoints = 0, unlockedSkills = 0, } CLIENT ONLY

exports['dh_skillTree']:reloadDefaultSkills()

Some people might need that for their ambulance scripts

Last updated