remEXP

This function deducts experience points (XP) from a specific skill for a given player. It ensures that the deduction does not exceed configured limits to maintain fairness and prevent data corruption

Example

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

Returns:

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

Last updated