--<< FUNCTIONS >>
--Change value

function module:ChangeStat(player, statName, changeValue)
	local pdata = main.pd[player]
	if pdata then
		local newValue = pdata[statName]
		--[[
		if type(changeValue) == "number" and tonumber(newValue) then
			if changeValue == "reset" then
				newValue = 0
			else
				newValue = newValue + changeValue
			end
		else--]]
			newValue = changeValue
		--end
		main.pd[player][statName] = newValue
		main.pd[player].DataToUpdate = true
		main.signals.ChangeStat:FireClient(player, {statName, newValue})
		if statName == "Rank" then
			main.signals.RankChanged:FireClient(player)
		end
	end
end
