addEXP

This function is designed to add experience points (XP) to a specific skill for a given player. It carefully checks for over-rewarding to prevent cheating and potential issues.

Example

local skills = exports.dime_skills
local success = skills:addEXP(playerId, 'driving', 50)

Returns:

  • success: [boolean] Returns true if the XP was successfully added and all updates were performed correctly, or false if any step of the process failed.

Last updated